怎么不直接用document.getElementById("p")
?var p =document.getElementById("menu").getElementsByTagName("p");
怎么不直接用document.getElementById("p"),不能這樣用么,為什么
?var p =document.getElementById("menu").getElementsByTagName("p");
怎么不直接用document.getElementById("p"),不能這樣用么,為什么
2015-09-20
舉報(bào)
2015-10-13
http://idcbgp.cn/learn/36?建議看下這個(gè)課程,p是標(biāo)簽不是id怎么能用getElementById()來(lái)獲取