运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> Time: <input type="time" id="myTime" value="16:32:55"> <p>Click the button to increment the value of the time field by 1 minute (each time you click).</p> <p><strong>Note:</strong> This is the same as clicking the up arrow on the right side of the time field for the "minute" section.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myTime").stepUp(); } </script> </body> </html>