标签:pre function span clear cti 执行 窗口 var log
var resizeTimer = null; window.onresize = function () { if (resizeTimer) clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { console.log("窗口发生改变了哟!"); car1.resize() car2.resize() }, 30); }
标签:pre function span clear cti 执行 窗口 var log
原文地址:https://www.cnblogs.com/zwhbk/p/13304008.html