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