$(window).resize(function(){
$('span').text(x+=1);
})
定义和用法
当调整浏览器窗口大小时,发生resize 事件。
resize() 方法触发 resize 事件,或规定当发生 focus 事件时运行的函数;
$(window).resize(function(){
$('span').text(x+=1);
})
当调整浏览器窗口大小时,发生resize 事件。
resize() 方法触发 resize 事件,或规定当发生 focus 事件时运行的函数;