代码示例:(标识:eg_html_input_week)
<!DOCTYPE html>
<html>
<body>

<p>
根据浏览器支持:<br>
当您填写输入字段时会弹出日期选择器。
</p>

<form action="/Index/Demo/demo_form_current.html">
  Select a week:
  <input type="week" name="data">
  <input type="submit">
</form>

<p><b>注释:</b>
Internet Explorer 不支持 type="week"。</p>

</body>
</html>
运行结果: