Java代码中求系统的时间戳:
System.currentTimeMillis()
js代码中求系统的时间戳:
方法一:
var timestamp = (new Date()).getTime(); console.log(timestamp);
方法二:
var timestamp2 = (new Date()).valueOf(); console.log(timestamp2);