//第一种方法   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();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-05-15
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案