摘要: // 获取当前时间戳(以s为单位) var timestamp = Date.parse(new Date()); timestamp = timestamp / 1000; //当前时间戳为:1403149534 console.log("当前时间戳为:" + timestamp); // 获取某个时间格式的时间戳 var stringTime = "2014-07-10 10:21:12"... 阅读全文
posted @ 2017-11-02 13:50 yaoh371 阅读(160) 评论(0) 推荐(0) 编辑