久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      詳解Js中Document對象的方法和屬性

      Document對象的方法和屬性

      document.writeln() 等同于 write() 方法,不同的是在每個表達(dá)式之后寫一個換行符。

      document.scripts 返回頁面中所有腳本的集合。

      document.title 返回當(dāng)前文檔的標(biāo)題。

      document.URL 返回文檔完整的URL

      document.referrer 返回載入當(dāng)前文檔的文檔的 URL。

      document.querySelector() 返回文檔中匹配指定的CSS選擇器的第一元素

      document.querySelectorAll() document.querySelectorAll() 是 HTML5中引入的新方法,返回文檔中匹配的CSS選擇器的所有元素節(jié)點列表

      document.readyState 返回文檔狀態(tài) (載入中……)

      document.normalize() 刪除空文本節(jié)點,并連接相鄰節(jié)點

      document.links 返回對文檔中所有 Area 和 Link 對象引用。links 集合計算 <a href=""> 標(biāo)簽和 <area> 標(biāo)簽。

      document.inputEncoding 返回用于文檔的編碼方式(在解析時)。(ie8不支持)

      document.lastModified 返回文檔被最后修改的日期和時間。

      document.importNode(node,deep) 把一個節(jié)點從另一個文檔復(fù)制到該文檔以便應(yīng)用。(ie8不支持)

      document.images 返回對文檔中所有 Image 對象引用。

      document.forms 返回對文檔中所有 Form 對象引用。

      document.getElementsByClassName() 返回文檔中所有指定類名的元素集合,作為 NodeList 對象。(ie8不支持

      document.documentElement 返回文檔的根節(jié)點

      document.documentMode 返回用于通過瀏覽器渲染文檔的模式,只支持ie

      document.domain 返回當(dāng)前文檔的域名。)

      document.cookie 設(shè)置或返回與當(dāng)前文檔有關(guān)的所有 cookie。

      document.createAttribute() 創(chuàng)建一個屬性節(jié)點

      document.createComment() createComment() 方法可創(chuàng)建注釋節(jié)點。

      document.createElement() 創(chuàng)建元素節(jié)點。

      document.createTextNode() 創(chuàng)建文本節(jié)點。

      document.doctype 返回與文檔相關(guān)的文檔類型聲明 (DTD)。

      document.adoptNode(node) 從另外一個文檔返回 adapded 節(jié)點到當(dāng)前文檔。adoptNode() 方法用于從另外一個文檔中獲取一個節(jié)點。

      節(jié)點可以是任何節(jié)點類型。

      注意: 節(jié)點下的所有子節(jié)點都會獲取到。

      注意: 節(jié)點及其子節(jié)點會再源文檔中刪除。

      提示: 使用 document.importNode() 方法來拷貝節(jié)點,但原文檔中的節(jié)點不刪除。.

      提示: 使用 element.cloneNode() 方法來拷貝當(dāng)前文檔的節(jié)點,且節(jié)點不會被刪除。

      document.anchors 返回對文檔中所有 Anchor 對象的引用。a標(biāo)簽包括name屬性

      document.activeElement 返回當(dāng)前獲取焦點元素

      推薦教程:《JS教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號