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