标签:定时器 cat set time clear bsp function var load()
1 var timeout = null;//onresize触发次数过多,设置定时器 2 window.onresize = function () { 3 clearTimeout(timeout); 4 timeout = setTimeout(function () { window.location.reload(); }, 100);//页面大小变化,重新加载页面以刷新MAP 5 }
标签:定时器 cat set time clear bsp function var load()
原文地址:https://www.cnblogs.com/yangguoe/p/9023109.html