JavaScript HTML DOM

閫氳繃 HTML DOM锛孞avaScript 鑳藉璁块棶鍜屾敼鍙 HTML 鏂囨。鐨勬墍鏈夊厓绱犮€侟/strong>

HTML DOM锛堟枃妗e璞℃ā鍨嬶級

褰撶綉椤佃鍔犺浇鏃讹紝娴忚鍣ㄤ細鍒涘缓椤甸潰鐨勬枃妗e璞℃ā鍨嬶紙Document Object Model锛夈€侟/p>

HTML DOM 妯″瀷琚粨鏋勫寲涓裹em>瀵硅薄鏍慄/em>锛欬/p>

瀵硅薄鐨 HTML DOM 鏍慄/h3> DOM HTML 鏍?>
<p>閫氳繃杩欎釜瀵硅薄妯″瀷锛孞avaScript 鑾峰緱鍒涘缓鍔ㄦ€ HTML 鐨勬墍鏈夊姏閲忥細</p>
<ul>
<li>JavaScript 鑳芥敼鍙橀〉闈腑鐨勬墍鏈 HTML 鍏冪礌</li>
<li>JavaScript 鑳芥敼鍙橀〉闈腑鐨勬墍鏈 HTML 灞炴€?/li>
<li>JavaScript 鑳芥敼鍙橀〉闈腑鐨勬墍鏈 CSS 鏍峰紡</li>
<li>JavaScript 鑳藉垹闄ゅ凡鏈夌殑 HTML 鍏冪礌鍜屽睘鎬?/li>
<li>JavaScript 鑳芥坊鍔犳柊鐨 HTML 鍏冪礌鍜屽睘鎬?/li>
<li>JavaScript 鑳藉椤甸潰涓墍鏈夊凡鏈夌殑 HTML 浜嬩欢浣滃嚭鍙嶅簲</li>
<li>JavaScript 鑳藉湪椤甸潰涓垱寤烘柊鐨 HTML 浜嬩欢</li>
</ul>
</div>
<div>
<h2>鎮ㄥ皢瀛﹀埌浠€涔圏/h2>
<p>鍦ㄦ湰鏁欑▼涓嬮潰鐨勭珷鑺備腑锛屾偍灏嗗鍒帮細</p>
<ul>
<li>濡備綍鏀瑰彉 HTML 鍏冪礌鐨勫唴瀹更/li>
<li>濡備綍鏀瑰彉 HTML 鍏冪礌鐨勬牱寮忥紙CSS锛堻/li>
<li>濡備綍瀵 HTML DOM 浜嬩欢浣滃嚭鍙嶅簲</li>
<li>濡備綍娣诲姞鍜屽垹闄 HTML 鍏冪礌</li>
</ul>
</div>
<div>
<h2>浠€涔堟槸 DOM锛烖/h2>
<p>DOM 鏄竴椤 W3C (World Wide Web Consortium) 鏍囧噯銆侟/p>
<p>DOM 瀹氫箟浜嗚闂枃妗g殑鏍囧噯锛欬/p>
<blockquote>
鈥淲3C 鏂囨。瀵硅薄妯″瀷锛圖OM锛夋槸涓珛浜庡钩鍙板拰璇█鐨勬帴鍙o紝瀹冨厑璁哥▼搴忓拰鑴氭湰鍔ㄦ€佸湴璁块棶銆佹洿鏂版枃妗g殑鍐呭銆佺粨鏋勫拰鏍峰紡銆傗€
</blockquote>
<p>W3C DOM 鏍囧噯琚垎涓 3 涓笉鍚岀殑閮ㄥ垎锛欬/p>
<ul>
<li>Core DOM - 鎵€鏈夋枃妗g被鍨嬬殑鏍囧噯妯″瀷</li>
<li>XML DOM - XML 鏂囨。鐨勬爣鍑嗘ā鍨婞/li>
<li>HTML DOM - HTML 鏂囨。鐨勬爣鍑嗘ā鍨婞/li>
</ul>
</div>
<div>
<h2>浠€涔堟槸 HTML DOM锛烖/h2>
<p>HTML DOM 鏄 HTML 鐨勬爣鍑咟em>瀵硅薄</em>妯″瀷鍜孅em>缂栫▼鎺ュ彛</em>銆傚畠瀹氫箟浜嗭細</p>
<ul>
<li>浣滀负<em>瀵硅薄</em>鐨 HTML 鍏冪礌</li>
<li>鎵€鏈 HTML 鍏冪礌鐨凕em>灞炴€?/em></li>
<li>璁块棶鎵€鏈 HTML 鍏冪礌鐨凕em>鏂规硶</em></li>
<li>鎵€鏈 HTML 鍏冪礌鐨凕em>浜嬩欢</em></li>
</ul>
<p><strong>鎹㈣█涔嬶細HTML DOM 鏄叧浜庡浣曡幏鍙栥€佹洿鏀广€佹坊鍔犳垨鍒犻櫎 HTML 鍏冪礌鐨勬爣鍑咟/strong>銆侟/p>
</div>
<div class=