js获取当前时间戳方法:


var now = Math.round(new Date() / 1000);
console.log(now);