2020-11-12(关于 console.time()和console.timeEnd())
摘要:
使用console.time() 和 console.timeEnd()可以测试代码运行所耗时间 eg: let arr = [{a:1},{a:2},{a:3},{a:4},{a:5}]; console.time('for-time'); for(let i=0;i<arr.length;i++ 阅读全文
posted @ 2020-11-12 17:10 有匪 阅读(725) 评论(0) 推荐(0)
浙公网安备 33010602011771号