getElementById、getElementsByName与getElementsByTagName的用法与区别
getElementById:
语法: document.getElementById(id)
参数:id :必选项为字符串(String)
返回值:对象; 返回相同id对[……]
getElementById、getElementsByName与getElementsByTagName的用法与区别
getElementById:
语法: document.getElementById(id)
参数:id :必选项为字符串(String)
返回值:对象; 返回相同id对[……]