問題:
How can I get a timestamp in JavaScript? 如何獲取JavaScript時間戳? spa
Something similar to Unix timestamp , that is, a single number that represents the current time and date. 與Unix時間戳相似,即表明當前時間和日期的單個數字。 Either as a number or a string. 能夠是數字或字符串。 .net
解決方案:
參考一: https://stackoom.com/question/vZG/您如何得到JavaScript時間戳參考二: https://oldbug.net/q/vZG/How-do-you-get-a-timestamp-in-JavaScript