JavaScript :. 1. // 取得所有<p> 元素,會取得陣列格式. 2. document.getElementsByTagName("p");. 3. . 4. // 取得特定id="the_id" 的元素,會取得單一物件.
確定! 回上一頁