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