1、首先写一条console.time和console.timeEnd语句。
2、然后在console.time和console.timeEnd语句中间写for循环语句。
3、运行js文件,可以看到for循环运行的时间为0.131ms。