JavaScript Date.getUTCMilliseconds()方法根据通用时间返回指定日期的毫秒数。getUTCMilliseconds()返回的值是介于0和999之间的整数。
Date.getUTCMilliseconds()
根据通用时间返回指定日期中的毫秒数。
链接:https://www.learnfk.comhttps://www.learnfk.com/javascript/date-getutcmilliseconds.html
来源:LearnFk无涯教程网
<html> <head> <title>JavaScript getUTCMilliseconds Method</title> </head> <body> <script type="text/javascript"> var dt=new Date(); document.write("getUTCMilliseconds() : " + dt.getUTCMilliseconds() ); </script> </body> </html>
运行上面代码输出
getUTCMilliseconds() : 206
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)