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