返回 date 对象中用本地时间表示的毫秒值。
dateobj.getmilliseconds()
必选项 dateobj 参数为 date 对象。
要获取用全球标准时间 (utc)表示的毫秒值,请使用 getutcmilliseconds 方法。
所返回的毫秒值处于 0-999 之间。
下面这个例子说明了 getmilliseconds 方法的用法:
function timedemo(){ var d, s = "当前本地时间为: ";var c = ":";d = new date();s += d.gethours() + c;s += d.getminutes() + c;s += d.getseconds() + c;s += d.getmilliseconds();return(s);}
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器