// 获取浏览器 宽高 var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight // 定时器 setInterval() var timerId = setInterval (function() { /** clearInterval() 取消定时器 clearInterval(timerId); */ console.log(new Date); }, 2000)
JS 对浏览器相关的操作
猜你喜欢
转载自www.cnblogs.com/GetcharZp/p/12069367.html
今日推荐
周排行