How can I get a timestamp in JavaScript?
Something similar to Unix's timestamp, that is, a single number that represents the current time and date. Either as a number or a string.
转载于:https://stackoverflow.com/questions/221294/how-do-you-get-a-timestamp-in-javascript