<html>
<body>
<h1>演示如何访问 Time 字段</h1>
<input type="time" id="myTime" value="00:29:00">
<p>点击按钮可获取时间字段的时间。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myTime").value;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>