JS中代码执行速度测试 肥晨 2023-02-28 62 阅读1分钟 console.time("timer");for (let index = 0; index < 100; index++) { } console.timeEnd("timer");//timer: 0.007080078125ms