js 代码执行时间

 
<html>
<head>
</script>
<script>
var sTime=new Date().getTime();
alert("执行中……")
var eTime=new Date().getTime();
alert("代码执行的时间是:"+(eTime-sTime));
</script>
</html>





原文地址:https://www.cnblogs.com/feiqihang/p/3410609.html