时间戳

Java代码中求系统的时间戳:

  System.currentTimeMillis()

js代码中求系统的时间戳:

  方法一:

  var timestamp = (new Date()).getTime();
  console.log(timestamp); 

  方法二:

  var timestamp2 = (new Date()).valueOf();
  console.log(timestamp2);

原文地址:https://www.cnblogs.com/zying3/p/10266693.html