document.getElementById(); // id名の
document.getElementsByTagName(); //タグ名
document.getElementsByClassName(); //クラス名
document.getElementsByName(); //名前、一般的に、属性値を行いませ
document.querySelector();
document.querySelectorAll();
はdocument.firstChild
document.body
document.head
document.title
document.URL
document.domainを//現在のドキュメントをダウンロードするには、ドメインネームサーバを返します。
どの方法DOM要素を取得します。
おすすめ
転載: www.cnblogs.com/wuqilang/p/11204681.html
おすすめ
ランキング