第一种方法 1498627266000 var timestamp1 =Date.parse(new Date());
第一种要领 1498627266000
var timestamp1 =Date.parse(new Date()); console.log(timestamp1);
第二种要领 1498627266558
var timestamp2 =(new Date()).valueOf(); console.log(timestamp2);
第三种要领 1498627266558
var timestamp3 =new Date().getTime(); console.log(timestamp3);
,温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32045.html