JSgetAttribute和setAttribute(取得和設置屬性)的使用介紹_javascript技巧
來源:懂視網
責編:小采
時間:2020-11-27 21:11:54
JSgetAttribute和setAttribute(取得和設置屬性)的使用介紹_javascript技巧
JSgetAttribute和setAttribute(取得和設置屬性)的使用介紹_javascript技巧:getAttribute:取得屬性;setAttribute:設置屬性; 代碼如下: Untitled Document function change() { var input = document.getElementById(li1); alert(input.getAttribute(title)); input.se
導讀JSgetAttribute和setAttribute(取得和設置屬性)的使用介紹_javascript技巧:getAttribute:取得屬性;setAttribute:設置屬性; 代碼如下: Untitled Document function change() { var input = document.getElementById(li1); alert(input.getAttribute(title)); input.se

getAttribute:取得屬性;
setAttribute:設置屬性;
代碼如下:
Untitled Document 聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
JSgetAttribute和setAttribute(取得和設置屬性)的使用介紹_javascript技巧
JSgetAttribute和setAttribute(取得和設置屬性)的使用介紹_javascript技巧:getAttribute:取得屬性;setAttribute:設置屬性; 代碼如下: Untitled Document function change() { var input = document.getElementById(li1); alert(input.getAttribute(title)); input.se