代码如下: //时间戳 let timestamp = Date.parse(new Date().toString()); console.log('timestamp: ' + timestamp);