会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lambert's blog
停杯投箸不能食,拔剑四顾心茫然
首页
联系
管理
2020年4月13日
js 查看脚本运行时间的办法
摘要: ``` 1. console.time('global') // 要执行的代码放中间 console.timeEnd('global') 2. // 这里脚本的时间范围有限制,0~999ms console.log( new Date().getMilliseconds() ) // 要执行的代码放中间 console.log( new Date().getMilliseconds() ) ```
阅读全文
posted @ 2020-04-13 22:17 lambertlt
阅读(1770)
评论(0)
推荐(0)
编辑
公告