javascript时间戳和日期字符串相互转换(json)
转载:http://www.cnblogs.com/yjf512/p/3796229.html
// 获取当前时间戳(以s为单位)
var timestamp = Date.parse(new Date());
timestamp = timestamp / 1000;
//当前时间戳为:1403149534
console.log("当前时间戳为:" + timesta
转载
2016-09-22 20:10:15 ·
4047 阅读 ·
0 评论