Get the time out of my browser

Possible Duplicate:
How to get current date in JavaScript

How can i Get the time out of my browser whit using javascript? This do I need to make a comparison in my script.


currentTime = new Date();
time = currentTime.getTime();
hours = currentTime.getHours();

等等


您可以使用Date对象获取当前时间:

var currentTime = new Date();
链接地址: http://www.djcxy.com/p/77512.html

上一篇: 本地获取当前日期

下一篇: 从我的浏览器中获取时间