学习go语言写博客时运到一个小问题,但我这只差鸟没能查到原因
求助代码如下
{{template "header"}}
<title> 首页-我的博客</title>
</head>
<body>
<div class="container" style="width: 500px; height: 500px;">
<form method="Post" action="/login">
<div class="form-group">
    <label>Account</label>
    <input id="uname" class="form-control" placeholder="Enter Account" name="uname">
  </div>
  <div class="form-group">
    <label>Password</label>
    <input id="pwd" type="password" class="form-control" placeholder="Password" name="pwd">
  </div>   <div class="checkbox">
    <label>
      <input type="checkbox" name="autoLogin">自动登录
    </label>
  </div>
  <button type="submit" class="btn btn-default">登录</button>
</form> <script type="text/javascript">
function checkInput(){
var uname = document.getElementsById("uname");
if (uname.value.length == 0){
alert("请输入账号和密码");
return false
}
var pwd = document.getElementsById("pwd");
if (pwd.value.length == 0){
alert("请输入密码");
return false
}
return true
}
</script>


</div>
</body>
</html>