<html>
<body>
Week and Year: <input type="week" id="myWeek">
<p>点击按钮设置 week 字段的年和周。</p>
<button onclick="myFunction()">点我</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("myWeek").value = "2014-W48";
}
</script>
</body>
</html>