console.time("timer名字") 其他脚本 console.timeEnd("timer名字"); 运行后结果为: timer名字: 运行时间 转载于:https://www.cnblogs.com/time-is-life/p/5382510.html