导航

2017年12月6日

摘要: 1 // 获取当前时间戳(以s为单位) 2 var timestamp = Date.parse(new Date()); 3 timestamp = timestamp / 1000; 4 console.log("当前时间戳为:" + timestamp); 5 6 7 8 // 获取某个时间格式的时间戳 9 var stringTime = "2017-12-0... 阅读全文

posted @ 2017-12-06 22:09 小飞博客 阅读(3353) 评论(0) 推荐(0) 编辑