1. 
console.time('global')
 
// 要执行的代码放中间
 
console.timeEnd('global')

2.
// 这里脚本的时间范围有限制,0~999ms
console.log( new Date().getMilliseconds() )

// 要执行的代码放中间

console.log( new Date().getMilliseconds() )

相关文章:

  • 2021-12-09
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2022-12-23
  • 2022-01-30
  • 2021-04-12
  • 2021-09-20
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案