js 时间戳和日期互转
摘要:
// 获取当前时间戳(以s为单位) var timestamp = Date.parse(new Date()); timestamp = timestamp / 1000; //当前时间戳为:1403149534 console.log("当前时间戳为:" + timestamp); // 获取某 阅读全文
posted @ 2017-06-18 12:11 防空洞123 阅读(260) 评论(0) 推荐(0)
posted @ 2017-06-18 12:11 防空洞123 阅读(260) 评论(0) 推荐(0)