您现在的位置是:首页 > 电脑技术查询 > web开发

如何判断控件的类型

编辑:chaxungu时间:2022-10-02 23:22:44分类:web开发

怎么判断控件的类型?
var All = document.getElementById(all)

怎么判断All的类型,是Input type= "text ",还是Select.

------解决方案--------------------
alert(ALL.nodeName);