运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往空间
<!DOCTYPE html> <html> <body> Enter a week between Week 12 and Week 19 in 2014: <input type="week" id="myWeek" min="2014-W12" max="2014-W19"> <p>Click the button to display the value of the min attribute of the week field.</p> <button onclick="myFunction()">Try it</button> <hr> <%method="shadowOffset"%> <!-- #include file="inc_support_ie9.inc" --> <hr> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myWeek").min; document.getElementById("demo").innerHTML = x; } </script> </body> </html>