View source for HTM L基础输入

%%(hl html)
<input id="input" type="text" />
<button onclick="main">提交</button>
<script>
  main = function(){
    alert("你输入了"+document.getElementById['input'].value)
  }
</script>
%%