运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Temporal</h1> <h2>The PlainDate() Method</h2> <p>PlainDate() lets you to create a date with no time:</p> <p id="demo"></p> <script> // const date = new Temporal.PlainDate(2024, 5, 1); let date = "Temporal is currently in stage 3 (almost finished) in the 2024 proposal." document.getElementById("demo").innerHTML = date; </script> </body> </html>