JS中代码执行速度测试

        console.time("timer");for (let index = 0; index < 100; index++) {
        }
        console.timeEnd("timer");//timer: 0.007080078125ms

 

posted @ 2021-11-30 19:49  肥晨  阅读(258)  评论(0编辑  收藏  举报