<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # XML DOM - Document 對象 Document 對象代表整個 XML 文檔。 ## Document 對象 Document 對象是文檔樹的根,并為我們提供對文檔數據的最初(或最頂層)的訪問入口。 由于元素節點、文本節點、注釋、處理指令等均無法存在于文檔之外,Document 對象也提供了創建這些對象的方法。Node 對象提供了一個 ownerDocument 屬性,此屬性可把它們與在其中創建它們的 Document 關聯起來。 ## Document 對象屬性 | 屬性 | 描述 | | --- | --- | | [async](prop-document-async.html) | 規定 XML 文件的下載是否應當被異步處理。 | | [childNodes](prop-document-childnodes.html) | 返回文檔的子節點的節點列表。 | | [doctype](dom-prop-document-doctype.html) | 返回與文檔相關的文檔類型聲明(DTD,全稱 Document Type Declaration)。 | | [documentElement](dom-prop-document-documentelement.html) | 返回文檔的根節點。 | | [documentURI](dom-prop-document-documenturi.html) | 設置或返回文檔的位置。 | | domConfig | 返回 normalizeDocument() 被調用時所使用的配置。 | | [firstChild](prop-document-firstchild.html) | 返回文檔的第一個子節點。 | | [implementation](dom-prop-document-implementation.html) | 返回處理該文檔的 DOMImplementation 對象。 | | [inputEncoding](dom-prop-document-inputencoding.html) | 返回用于文檔的編碼方式(在解析時)。 | | [lastChild](prop-document-lastchild.html) | 返回文檔的最后一個子節點。 | | [nodeName](prop-document-nodename.html) | 返回節點的名稱(根據節點的類型)。 | | [nodeType](prop-document-nodetype.html) | 返回節點的節點類型。 | | [nodeValue](prop-document-nodevalue.html) | 設置或返回節點的值(根據節點的類型)。 | | [strictErrorChecking](dom-prop-document-stricterrorchecking.html) | 設置或返回是否強制進行錯誤檢查。 | | [xmlEncoding](prop-document-xmlencoding.html) | 返回文檔的 XML 編碼。 | | [xmlStandalone](prop-document-xmlstandalone.html) | 設置或返回文檔是否為 standalone。 | | [xmlVersion](prop-document-xmlversion.html) | 設置或返回文檔的 XML 版本。 | ## Document 對象方法 | 方法 | 描述 | | --- | --- | | adoptNode(sourcenode) | 從另一個文檔向本文檔選定一個節點,然后返回被選節點。 | | createAttribute(name) | 創建帶有指定名稱的屬性節點,并返回新的 Attr 對象。 | | createAttributeNS(uri,name) | 創建帶有指定名稱和命名空間的屬性節點,并返回新的 Attr 對象。 | | [createCDATASection()](met-document-createcdatasection.html) | 創建 CDATA 區段節點。 | | [createComment()](dom-met-document-createcomment.html) | 創建注釋節點。 | | createDocumentFragment() | 創建空的 DocumentFragment 對象,并返回此對象。 | | [createElement()](dom-met-document-createelement.html) | 創建元素節點。 | | [createElementNS()](met-document-createelementns.html) | 創建帶有指定命名空間的元素節點。 | | createEntityReference(name) | 創建 EntityReference 對象,并返回此對象。 | | createProcessingInstruction(target,data) | 創建一個 ProcessingInstruction 對象,并返回此對象。 | | [createTextNode()](dom-met-document-createtextnode.html) | 創建文本節點。 | | getElementById(id) | 返回帶有指定值的 ID 屬性的元素。如果不存在這樣的元素,則返回 null。 | | [getElementsByTagName()](dom-met-document-getelementsbytagname.html) | 返回帶有指定名稱的所有元素的 NodeList。 | | [getElementsByTagNameNS()](met-document-getelementsbytagnamens.html) | 返回帶有指定名稱和命名空間的所有元素的 NodeList。 | | importNode(nodetoimport,deep) | 從另一個文檔向本文檔選定一個節點。該方法創建源節點的一個新的副本。如果 deep 參數設置為 true,它將導入指定節點的所有子節點。 如果設置為 false,它將只導入節點本身。該方法返回被導入的節點。 | | normalizeDocument() | | [renameNode()](dom-met-document-renamenode.html) | 重命名元素或屬性節點。 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看