js获取当前时间戳 不需毫秒数

var timestamp = Date.parse(new Date())/1000;

原文地址:https://www.cnblogs.com/lzs-888/p/5867738.html