运行 ❯
获取您自己的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript Dates</h2> <p>The internal clock in JavaScript starts at midnight January 1, 1970.</p> <p>Date.now() returns the number of milliseconds since January 1, 1970 00:00:00 UTC:</p> <p id="demo"></p> <script> let ms = Date.now(); document.getElementById("demo").innerHTML = ms; </script> </body> </html>