Home  >  Q&A  >  body text

javascript - console.time打印出的数字太大

我在jquery的源码起始和结束位置加了console.time/timeEnd.

结果打印出一个这么大的数字. 有人知道是什么原因吗?.

jquery中的更改

console.time("jquery");
 // ... jquery的代码

console.timeEnd("jquery");

然后在index.html中引入jquery.

最后打开index.html查看输出.

得出这个结果

阿神阿神2646 days ago486

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-10 18:08:44

    可以贴出程序吗?
    1.48e+12ms ==> 1.48e+9s
    大概是:
    17129.62962962963 天

    Reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-10 18:08:44

    数值过大,转换成了科学计数法

    Reply
    0
  • CancelReply