怎么判断控件的类型?var All = document.getElementById(all) 怎么判断All的类型,是Input type= "text ",还是Select.[解决办法]alert(ALL.nodeName);