使用Number()方法 将Date对象转换成时间戳
var newDay = new Date();
console.log(Number(newDay));
使用日期对象Date.parse()方法
var newDay = new Date();
console.log(Date.parse(newDay));
使用Number()方法 将Date对象转换成时间戳
var newDay = new Date();
console.log(Number(newDay));
使用日期对象Date.parse()方法
var newDay = new Date();
console.log(Date.parse(newDay));