getElementById在对表单控件的时候,把name视为id 对于表单控件<input><select><textarea>等,在不指定id的时候,name也会被视作id,比如<input type="text" name="abc" value="123">也可以用document.getElementById("abc")来获取