运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Dates</h1> <h2>The getUTCMinutes() Method</h2> <p>getUTCMinutes() returns the minutes of a date, according UTC:</p> <p id="demo"></p> <script> const d = new Date("July 21, 1983 01:15:00"); let minutes = d.getUTCMinutes(); document.getElementById("demo").innerHTML = minutes; </script> </body> </html>