var timer = false; $(window).resize(function() { if (timer !== false) { clearTimeout(timer); } timer = setTimeout(function() { console.log('resized'); // 何らかの処理 }, 200); }); 赞微海报分享
近期评论