javascript Date.getMilliseconds()方法按照本地时间返回指定日期的毫秒数。通过getMilliseconds返回的是一个介于0和999的值。
语法
Date.getMilliseconds()
下面是参数的详细信息:
- NA
返回值:
按照本地时间返回指定日期的毫秒数。
例子:
<html>
<head>
<title>JavaScript getMilliseconds Method</title>
</head>
<body>
<script type="text/javascript">
var dt = new Date( );
document.write("getMilliseconds() : " + dt.getMilliseconds() );
</script>
</body>
</html>
这将产生以下结果:
getMilliseconds() : 578
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“JavaScript中的getMilliseconds()方法使用详解”评论...