Get time in javascript like python time.time()
This question already has an answer here:
像这样:
var time = +new Date;
You can use
time = (new Date()).getTime() / 1000;
See getTime() on the MDN.
链接地址: http://www.djcxy.com/p/13560.htmlThis question already has an answer here:
像这样:
var time = +new Date;
You can use
time = (new Date()).getTime() / 1000;
See getTime() on the MDN.
链接地址: http://www.djcxy.com/p/13560.html