MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Compare Revisions

Document Object Model (DOM)

Change Revisions

Revision 684:

Revision 684 by Sheppy on

Revision 685:

Revision 685 by his3993 on

Title:
Document Object Model (DOM)
Document Object Model (DOM)
Slug:
DOM
DOM
Tags:
DOM
DOM
Content:

Revision 684
Revision 685
n8      &nbsp;n8      一、如何在firefox文件下写一个xml文件<br>
9      如何实现以下xml文档<br>
10      &lt;Steel-ERP&gt; &lt;Head sid="899898132932"/&gt; &lt;Clie
 >nt job="new" file="1222" file1="eeee"&gt; &lt;/Client&gt; &lt;/St
 >eel-ERP&gt;<br>
11      <br>
12      var oXmlDom = document.implementation.createDocument("","",
 >null);<br>
13      var oRoot = oXmlDom.documentElement;<br>
14      var myChildren = oRoot.firstChild ;<br>
15      var testnode = document.createElement("Steel-ERP");//根节点<br
 >>
16      <span style="color: rgb(255,0,0)">myChildren.appendChild(te
 >stnode);</span><br>
17      为何这样写不行呢??请高人指证
t10    <div class="callout-box">t
11      <strong><a href="en/Using_the_W3C_DOM_Level_1_Core">Using t
>he W3C DOM Level 1 Core</a></strong><br> 
12      Introduction to the W3C DOM.
13    </div>
14    <div>
15      <p>
16        The <strong>Document Object Model</strong> (<strong>DOM</
>strong>) is an API for <a href="en/HTML">HTML</a> and <a href="en 
>/XML">XML</a> documents. It provides a structural representation  
>of the document, enabling you to modify its content and visual pr 
>esentation. Essentially, it connects web pages to scripts or prog 
>ramming languages. 
17      </p>
18    </div>
19    <table class="topicpage-table">
20      <tbody>
21        <tr>
22          <td>
23            <h4 name="Documentation">
24              <a href="Special:Tags?tag=DOM&amp;language=en">Docu
>mentation</a> 
25            </h4>
26            <dl>
27              <dt>
28                <a href="en/Gecko_DOM_Reference">Gecko DOM Refere
>nce</a> 
29              </dt>
30              <dd>
31                <small>The Gecko Document Object Model Reference.
></small> 
32              </dd>
33            </dl>
34            <dl>
35              <dt>
36                <a href="en/About_the_Document_Object_Model">Abou
>t the Document Object Model</a> 
37              </dt>
38              <dd>
39                <small>A short introduction to the DOM.</small>
40              </dd>
41            </dl>
42            <dl>
43              <dt>
44                <a href="en/The_DOM_and_JavaScript">The DOM and J
>avaScript</a> 
45              </dt>
46              <dd>
47                <small>What is the DOM? What is JavaScript? How d
>o I use them together on my web page? This document answers these 
> questions and more.</small> 
48              </dd>
49            </dl>
50            <dl>
51              <dt>
52                <a href="en/Dynamically_modifying_XUL-based_user_
>interface">Dynamically modifying XUL-based user interface</a> 
53              </dt>
54              <dd>
55                <small>The basics of manipulating the XUL UI with
> DOM methods.</small> 
56              </dd>
57            </dl>
58            <dl>
59              <dt>
60                <a href="en/Determining_the_dimensions_of_element
>s">Determining the dimensions of elements</a> 
61              </dt>
62              <dd>
63                <small>How to figure out the right way to determi
>ne the dimensions of elements, given your needs.</small> 
64              </dd>
65            </dl>
66            <dl>
67              <dt>
68                <a class="external" href="http://www.mozilla.org/
>docs/dom/">The Document Object Model in Mozilla</a> 
69              </dt>
70              <dd>
71                <small>An older set of documentation about the DO
>M, hosted at mozilla.org.</small> 
72              </dd>
73            </dl>
74            <p>
75              <span class="alllinks"><a href="Special:Tags?tag=DO
>M&amp;language=en">View All...</a></span> 
76            </p>
77          </td>
78          <td>
79            <h4 name="Community">
80              Community
81            </h4>
82            <ul>
83              <li>View Mozilla forums...
84              </li>
85            </ul>
86            <p>
87              {{ DiscussionList("dev-tech-dom", "mozilla.dev.tech
>.dom") }} 
88            </p>
89            <h4 name="Tools">
90              Tools
91            </h4>
92            <ul>
93              <li>
94                <a class="external" href="http://www.getfirebug.c
>om/">Firebug</a> 
95              </li>
96              <li>
97                <a href="en/DOM_Inspector">DOM Inspector</a>
98              </li>
99              <li>
100                <a class="external" href="http://slayeroffice.com
>/tools/modi/v2.0/modi_help.html">Mouse-over DOM Inspector</a> 
101              </li>
102              <li>
103                <a class="external" href="http://www.karmatics.co
>m/aardvark/">Aardvark Firefox extension</a> 
104              </li>
105            </ul>
106            <p>
107              <span class="alllinks"><a href="Special:Tags?tag=DO
>M:Tools&amp;language=en">View All...</a></span> 
108            </p>
109            <h4 name="Related_Topics">
110              Related Topics
111            </h4>
112            <dl>
113              <dd>
114                <a href="en/AJAX">AJAX</a>, <a href="en/CSS">CSS<
>/a>, <a href="en/DHTML">DHTML</a>, <a href="en/JavaScript">JavaSc 
>ript</a> 
115              </dd>
116            </dl>
117          </td>
118        </tr>
119      </tbody>
120    </table>
121    <p>
122      <span class="comment">Categories</span>
123    </p>
124    <p>
125      <span class="comment">Interwiki Language Links</span>
126    </p>
127    <p>
128      <br>
129    </p>{{ languages( { "de": "de/DOM", "es": "es/DOM", "fr": "fr
>/DOM", "hu": "hu/DOM", "ja": "ja/DOM", "ko": "ko/DOM", "nl": "nl/ 
>DOM", "pl": "pl/DOM", "pt": "pt/DOM", "ru": "ru/DOM", "zh-cn": "c 
>n/DOM", "zh-tw": "zh_tw/DOM" } ) }} 

Back to History