对象.removeAttributeNode(属性内容)
删除的属性的内容
http://www.w3school.com.cn/tiy/t.asp?f=jsref_element_removeattributenode
上面的 n 如果改成 style 那么 就会出错。 因为 Node 删除的是style 内容而不是style 名称 。
对象.removeAttribute( "属性名称")
删除的是属性对象
http://www.w3school.com.cn/tiy/t.asp?f=jsref_element_removeattribute
Reset
document.getElementById("对象").reset()
注意都是小写 , 后面有括号,但是不用加参数 进去。
一般运用到 表单的重置中去。