課程
/前端開發(fā)
/JavaScript
/JavaScript進(jìn)階篇
前兩節(jié)講了getAttribute獲取對象的屬性,這里怎么不能用了呢?小白求問
2016-03-13
源自:JavaScript進(jìn)階篇 9-7
正在回答
什么情況方便截圖么,先檢查獲取對象是否成功,然后查看屬性值是否存在,getAttribute("屬性名");
舉報
本課程從如何插入JS代碼開始,帶您進(jìn)入網(wǎng)頁動態(tài)交互世界
2 回答為什么nodeObject.nextSibling不能使用getAttribute()方法
2 回答為什么這里不能通過getAttribute()方法獲取nodeName屬性值?
1 回答為什么這樣寫 用getAttribute()得不到nodeName屬性?var arr=document.getElementsByTagName("li"); document.write(arr[0].getAttribute(nodeName));
3 回答為什么這里要寫全List[i].getAttribute
3 回答為什么不能用getInt()?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-03-13
什么情況方便截圖么,先檢查獲取對象是否成功,然后查看屬性值是否存在,getAttribute("屬性名");