// 获取浏览器 宽高
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)

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2021-07-14
  • 2021-11-08
  • 2021-10-18
  • 2021-12-04
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案