在DOM中,获取id=“wen”的标签元素的写法:
A: document.getelementbyid("wen")
B: document.getElementById("wen")
C: window.getElementById("wen")
D: document.getElementBytag("wen")
A: document.getelementbyid("wen")
B: document.getElementById("wen")
C: window.getElementById("wen")
D: document.getElementBytag("wen")
举一反三
- 在JS中,通过document对象下的getElementById()方式用ID获取元素。()
- 使用JavaScript脚本进行表单数据验证时,需要使用document对象的哪个方法来获取表单元素? A: getElementbyid B: getElementById C: getElementBYId D: GetElementById
- 在Windows7中,下列文件名不正确的是()。 A: Wen Jian Ming. doc B: Wen Jian Ming. doc C: Wen/Jian/Ming. doc D: Wen+Jian+Ming. doc
- wen wenn
- Itis generallybelieved thatthe teachingof English inChinabeganwith the establishment of ( ).? Tong Wen Guan in Guangzhou|Tong Wen Guan in Shanghai|Ziqiang Xuetang in Wuhan|Tong Wen Guan in Beijing