I need that every time I resize the $(window).width() [ for example resize my Firefox ] with mouse . my function is run
for example
var width = $(window).width() ;
if ( width < 1000 ) { alert('1') }
if ( width > 1000 ) { alert('0') }
and this dynamically run every time i change the $(window).width() with my mouse
$( window ).resize(function() {
// do your stuff here
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.