HTM L基础输入

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

Add your comment