方法说明: 开始时间,与console.timeEnd对应,记录时间段。 语法: console.time(label) 接收参数: Label 与开始时间 console.lo
方法说明:
开始时间,与console.timeEnd对应,记录时间段。
语法:
console.time(label)
接收参数:
Label 与开始时间 console.log 的 label 对应
例子:
console.time('100-elements');
for (var i = 0; i < 100; i++) {
;
}
console.timeEnd('100-elements');
源码:
Console.prototype.time = function(label) {
this._times[label] = Date.now();
};
--结束END--
本文标题: node.js中的console.time方法使用说明
本文链接: https://www.lsjlt.com/news/12023.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2022-06-04
2022-06-04
2022-06-04
2022-06-04
2022-06-04
2022-06-04
2022-06-04
2022-06-04
2022-06-04
2022-06-04
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0