<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>时代Java与您共同学习(NowJava.com)</title>
</head>
<body>
时间: <input type="time" id="myTime">
<p>点击按设置 time 字段为只读。</p>
<p><strong>提示:</strong> 为了查看效果,你可以在点击按钮前后在 time 字段中尝试输入数据。</p>
<button onclick="myFunction()">点我</button>
<p id="demo"></p>
<script>
function myFunction() {
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。