﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-只爱一次</title><link>http://www.blogjava.net/onlylife/</link><description>不留遗憾</description><language>zh-cn</language><lastBuildDate>Sun, 12 Apr 2026 10:55:31 GMT</lastBuildDate><pubDate>Sun, 12 Apr 2026 10:55:31 GMT</pubDate><ttl>60</ttl><item><title>Javascript 目录树使用简介</title><link>http://www.blogjava.net/onlylife/archive/2006/05/30/48939.html</link><dc:creator>onlylife</dc:creator><author>onlylife</author><pubDate>Tue, 30 May 2006 04:57:00 GMT</pubDate><guid>http://www.blogjava.net/onlylife/archive/2006/05/30/48939.html</guid><wfw:comment>http://www.blogjava.net/onlylife/comments/48939.html</wfw:comment><comments>http://www.blogjava.net/onlylife/archive/2006/05/30/48939.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/onlylife/comments/commentRss/48939.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/onlylife/services/trackbacks/48939.html</trackback:ping><description><![CDATA[
		<p class="MsoTitle" style="MARGIN: 12pt 0cm 3pt; LINE-HEIGHT: 150%" align="center">
				<strong>
						<font size="5">
								<span lang="EN-US">
										<font face="Arial">XTree</font>
								</span>
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">树控件使用手册</span>
						</font>
				</strong>
		</p>
		<h1 style="MARGIN: 17pt 0cm 16.5pt 21.6pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">1<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span lang="EN-US">API</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">说明</span>
		</h1>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">1.1</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span lang="EN-US">
						<font face="Arial">WebFXTreeAbstractNode</font>
				</span>
		</h2>
		<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">树控件的抽象基类，不需要创建实例。它具有如下属性和方法。</span>
		</p>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.1.1</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">属性</font>
				</span>
		</h3>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">1.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">id <span style="mso-tab-count: 2">          </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数字类型</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">
								</span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">只读</span>
						<span lang="EN-US">
								<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">树节点的唯一标识</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">2.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">text <span style="mso-tab-count: 2">             </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字符串</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">节点的显示内容</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">3.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">action <span style="mso-tab-count: 1">   </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字符串</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">    </span>
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">节点的动作响应，如</span>
				<span lang="EN-US">&lt;a href=”<span style="COLOR: blue">action</span>”&gt;</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">4.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">open<span style="mso-tab-count: 2">              </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US">
								<span style="mso-spacerun: yes">  </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">布尔型</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">   </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">只读</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示该节点是否为打开状态还是合拢状态，默认情况下当该节点下没有子节点时返回</span>
				<span lang="EN-US">false</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">5.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">icon<span style="mso-tab-count: 2">        </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">   </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字符串</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">指定当前节点显示的图标，如果不指定则使用默认图标</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">6.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">openIcon<span style="mso-tab-count: 1">       </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">   </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字符串</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">指定节点展开时的图标（当有子节点时有效），不指定则使用默认图标</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">7.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">parentNode<span style="mso-tab-count: 1">    </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">引用</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">指向父节点的引用</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l2 level1 lfo2; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">8.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">childNodea<span style="mso-tab-count: 1">     </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">   </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数组</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">包含该节点下的所有子节点</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.1.2</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">方法</font>
				</span>
		</h3>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="NL" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: NL">
								<span style="mso-list: Ignore">1.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="NL" style="mso-ansi-language: NL">add(oNode, [bNodeIndent])<span style="mso-tab-count: 1"></span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: NL">－</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="NL" style="mso-ansi-language: NL">
								<span style="mso-tab-count: 1">   </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">返回</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="NL" style="mso-ansi-language: NL">
								<span style="mso-tab-count: 1">       </span>
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span lang="NL" style="mso-ansi-language: NL">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">2.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">indent()<span style="mso-tab-count: 1">  </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">3.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">toggle()<span style="mso-tab-count: 1">  </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">4.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">expand()<span style="mso-tab-count: 1"></span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">5.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">collapse()<span style="mso-tab-count: 1">       </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">6.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">expandAll()<span style="mso-tab-count: 1">   </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">7.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">collapseAll()<span style="mso-tab-count: 1">  </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">8.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">expandChildren()<span style="mso-tab-count: 1"></span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">9.<span style="FONT: 7pt 'Times New Roman'">         </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">collapseChildren()<span style="mso-tab-count: 1">       </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US"> void<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">10.<span style="FONT: 7pt 'Times New Roman'">     </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">getNextSibling()<span style="mso-tab-count: 1">   </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">   </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">返回</span>
						<span lang="EN-US">WebFXTreeItem</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的引用</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">11.<span style="FONT: 7pt 'Times New Roman'">     </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">getPreviousSibling()<span style="mso-tab-count: 1">    </span></span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">－</span>
						<span lang="EN-US">
								<span style="mso-tab-count: 1">   </span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">返回</span>
						<span lang="EN-US">WebFXTreeItem</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的引用</span>
						<span lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; LINE-HEIGHT: 150%; mso-list: l3 level1 lfo4; tab-stops: list 42.0pt">
				<b>
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">12.<span style="FONT: 7pt 'Times New Roman'">     </span></span>
						</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">toString()<o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; LINE-HEIGHT: 150%">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">1.2</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span lang="EN-US">
						<font face="Arial">WebFXTree</font>
				</span>
		</h2>
		<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">WebFXTree</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是树控件的根实体类，继承自</span>
				<span lang="EN-US">WebFXTreeAbstractNode</span>
		</p>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.2.1</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">构造方法</font>
				</span>
		</h3>
		<p class="074" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">WebFXTree(text, action, behavior, icon, openIcon)</span>
		</p>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.2.2</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">属性</font>
				</span>
		</h3>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.2.3</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">方法</font>
				</span>
		</h3>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">1.3</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span lang="EN-US">
						<font face="Arial">WebFXTreeItem</font>
				</span>
		</h2>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.3.1</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">构造方法</font>
				</span>
		</h3>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.3.2</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">属性</font>
				</span>
		</h3>
		<h3 style="MARGIN: 13pt 0cm 13pt 36pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">
								<font size="5">1.3.3</font>
								<span style="FONT: 7pt 'Times New Roman'">   </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<font size="5">方法</font>
				</span>
		</h3>
		<h1 style="MARGIN: 17pt 0cm 16.5pt 21.6pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">2<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用说明</span>
		</h1>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">2.1</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">包含</span>
				<span lang="EN-US">
						<font face="Arial">js</font>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">文件</span>
		</h2>
		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如：</span>
						<span lang="EN-US">&lt;script src=”xtree.js”&gt;&lt;/script&gt;</span>
				</p>
		</blockquote>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">2.2</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">创建根节点</span>
		</h2>
		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">var<span style="mso-tab-count: 1">   </span>root = new WebFXTree(“Root”);</span>
				</p>
		</blockquote>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">2.3</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">添加子节点</span>
		</h2>
		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%" align="left">
						<span lang="EN-US">root.all(new WebFXTreeItem(“Item<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /?><st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="”">1”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%" align="left">
						<span lang="EN-US">root.all(new WebFXTreeItem(“Item<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="”">2”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%" align="left">
						<span lang="EN-US">root.all(new WebFXTreeItem(“Item<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="3" unitname="”">3”</st1:chmetcnv>));</span>
				</p>
		</blockquote>
		<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">2.4</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">输出</span>
		</h2>
		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">document.write(root);</span>
				</p>
		</blockquote>
		<h1 style="MARGIN: 17pt 0cm 16.5pt 21.6pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">3<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">高级应用</span>
		</h1>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">3.1</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">添加目录</span>
		</h2>
		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">var<span style="mso-tab-count: 1">   </span>root = new WebFXTree(“Root”);</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">root.all(new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="”">1”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">var folder = new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="”">2”</st1:chmetcnv>);</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">root.add(folder);</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">foldr.all(new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2.1" unitname="”">2.1”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">folder.all(new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2.2" unitname="”">2.2”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">root.all(new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="3" unitname="”">3”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">document.write(root);</span>
				</p>
		</blockquote>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">3.2</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">定制行为</span>
		</h2>
		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">目录树的行为可以定制，通过</span>
						<span lang="EN-US">setBehavior</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">方法可以设定目录树中只包含目录，如</span>
				</p>
		</blockquote>
		<p class="074" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">var<span style="mso-tab-count: 1">   </span>root = new WebFXTree(“Root”);</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">root.setBehavior(‘explorer’);</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">:</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">:</span>
		</p>
		<p class="074" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">略</span>
		</p>
		<h2 style="MARGIN: 13pt 0cm 13pt 28.8pt; LINE-HEIGHT: 150%">
				<span lang="EN-US" style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial">
						<span style="mso-list: Ignore">
								<font face="Arial">3.3</font>
								<span style="FONT: 7pt 'Times New Roman'">    </span>
						</span>
				</span>
				<span style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">定制图标</span>
		</h2>
		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">var<span style="mso-tab-count: 1">   </span>root = new WebFXTree(“Root”);</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">root.all(new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="”">1”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">var folder = new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="”">2”</st1:chmetcnv>);</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">root.add(folder);</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">var t21 = new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2.1" unitname="”">2.1”</st1:chmetcnv>);</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">t21.icon=webFXTreeConfig.fileIcon;<span style="mso-tab-count: 1">   </span>//</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">设置节点</span>
						<span lang="EN-US">t21</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的图标</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">
						<span lang="EN-US">foldr.all();</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">folder.all(new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2.2" unitname="”">2.2”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">root.all(new WebFXTreeItem(“<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="3" unitname="”">3”</st1:chmetcnv>));</span>
				</p>
				<p class="074" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">
						</span>
						<span lang="EN-US">document.write(root);</span>
				</p>
		</blockquote>
<img src ="http://www.blogjava.net/onlylife/aggbug/48939.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/onlylife/" target="_blank">onlylife</a> 2006-05-30 12:57 <a href="http://www.blogjava.net/onlylife/archive/2006/05/30/48939.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript中使用showModalDialog的注意事项</title><link>http://www.blogjava.net/onlylife/archive/2006/05/16/46367.html</link><dc:creator>onlylife</dc:creator><author>onlylife</author><pubDate>Tue, 16 May 2006 03:36:00 GMT</pubDate><guid>http://www.blogjava.net/onlylife/archive/2006/05/16/46367.html</guid><wfw:comment>http://www.blogjava.net/onlylife/comments/46367.html</wfw:comment><comments>http://www.blogjava.net/onlylife/archive/2006/05/16/46367.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/onlylife/comments/commentRss/46367.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/onlylife/services/trackbacks/46367.html</trackback:ping><description><![CDATA[
		<p>在网页上，我们一般使用window.showModalDialog(&lt;url&gt;,&lt;标题&gt;,&lt;属性&gt;)来弹出一个模态对话框。但是在模态对话框中的提交有时候是无效的，而且页面跳转的话不是在对话框中的。<br />    解决这个问题的方法一般是在对话框中的页面上添加一个&lt;iframe&gt;,由&lt;iframe&gt;来转发真正的请求。为了增加页面的可重用行，我们一般会增加一个portal页，如下：<br /></p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img id="Codehighlighter1_2_48_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2_48_Open_Text.style.display='none'; Codehighlighter1_2_48_Closed_Image.style.display='inline'; Codehighlighter1_2_48_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
				<img id="Codehighlighter1_2_48_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2_48_Closed_Text.style.display='none'; Codehighlighter1_2_48_Open_Image.style.display='inline'; Codehighlighter1_2_48_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				<span style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">&lt;%</span>
				<span id="Codehighlighter1_2_48_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_2_48_Open_Text">
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">@ page contentType</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">text/html; charset=gb2312</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span>
				</span>
				<span style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">%&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img id="Codehighlighter1_54_87_Open_Image" onclick="this.style.display='none'; Codehighlighter1_54_87_Open_Text.style.display='none'; Codehighlighter1_54_87_Closed_Image.style.display='inline'; Codehighlighter1_54_87_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_54_87_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_54_87_Closed_Text.style.display='none'; Codehighlighter1_54_87_Open_Image.style.display='inline'; Codehighlighter1_54_87_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				</span>
				<span style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">&lt;%</span>
				<span id="Codehighlighter1_54_87_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_54_87_Open_Text">
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">@ page import</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">you.RequestCacher</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span>
				</span>
				<span style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">%&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img id="Codehighlighter1_93_234_Open_Image" onclick="this.style.display='none'; Codehighlighter1_93_234_Open_Text.style.display='none'; Codehighlighter1_93_234_Closed_Image.style.display='inline'; Codehighlighter1_93_234_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_93_234_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_93_234_Closed_Text.style.display='none'; Codehighlighter1_93_234_Open_Image.style.display='inline'; Codehighlighter1_93_234_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				</span>
				<span style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">&lt;%</span>
				<span id="Codehighlighter1_93_234_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_93_234_Open_Text">
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">String</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> requestUrl </span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">/test/test.do</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">String</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> params </span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> RequestCacher.getParameters(request);</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">//</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">获取请求参数<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">String</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> action </span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> requestUrl</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">?</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">params;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				</span>
				<span style="COLOR: #000000; BACKGROUND-COLOR: #ffff00">%&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">table </span>
				<span style="COLOR: #ff0000">width</span>
				<span style="COLOR: #0000ff">="100%"</span>
				<span style="COLOR: #ff0000"> height</span>
				<span style="COLOR: #0000ff">="100%"</span>
				<span style="COLOR: #ff0000"> border</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #ff0000"> cellspacing</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">td</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">iframe </span>
				<span style="COLOR: #ff0000">width</span>
				<span style="COLOR: #0000ff">="100%"</span>
				<span style="COLOR: #ff0000"> height</span>
				<span style="COLOR: #0000ff">="100%"</span>
				<span style="COLOR: #ff0000"> src</span>
				<span style="COLOR: #0000ff">="&lt;%=action%&gt;"</span>
				<span style="COLOR: #0000ff">&gt;&lt;/</span>
				<span style="COLOR: #800000">iframe</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">td</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">table</span>
				<span style="COLOR: #0000ff">&gt;</span>
		</div>  <br />   下面说明一下如上代码。一般我们可能会在弹出对话框时使用这样的方式：window.showModalDialog("/test/test.do"，“测试”，"dialogWidth:500px;dialogheight:650px")，如果这样的话，test.do跳转的页面如果继续有请求的话，服务器可能服务收到请求(可能是session的问题)，还有请求后的跳转页面不会出现在对话框中。<img src ="http://www.blogjava.net/onlylife/aggbug/46367.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/onlylife/" target="_blank">onlylife</a> 2006-05-16 11:36 <a href="http://www.blogjava.net/onlylife/archive/2006/05/16/46367.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DWR使用注意事项</title><link>http://www.blogjava.net/onlylife/archive/2006/03/27/37651.html</link><dc:creator>onlylife</dc:creator><author>onlylife</author><pubDate>Mon, 27 Mar 2006 09:39:00 GMT</pubDate><guid>http://www.blogjava.net/onlylife/archive/2006/03/27/37651.html</guid><wfw:comment>http://www.blogjava.net/onlylife/comments/37651.html</wfw:comment><comments>http://www.blogjava.net/onlylife/archive/2006/03/27/37651.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/onlylife/comments/commentRss/37651.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/onlylife/services/trackbacks/37651.html</trackback:ping><description><![CDATA[待填<img src ="http://www.blogjava.net/onlylife/aggbug/37651.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/onlylife/" target="_blank">onlylife</a> 2006-03-27 17:39 <a href="http://www.blogjava.net/onlylife/archive/2006/03/27/37651.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AJAX快速应用体验</title><link>http://www.blogjava.net/onlylife/archive/2006/03/22/36831.html</link><dc:creator>onlylife</dc:creator><author>onlylife</author><pubDate>Wed, 22 Mar 2006 05:11:00 GMT</pubDate><guid>http://www.blogjava.net/onlylife/archive/2006/03/22/36831.html</guid><wfw:comment>http://www.blogjava.net/onlylife/comments/36831.html</wfw:comment><comments>http://www.blogjava.net/onlylife/archive/2006/03/22/36831.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/onlylife/comments/commentRss/36831.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/onlylife/services/trackbacks/36831.html</trackback:ping><description><![CDATA[
		<p dir="ltr" style="MARGIN-RIGHT: 0px">         AJAX作为一种创建全新的用户体验技术组合，目前已有一些开源的实现，在经过技术研究和试用以后，感觉Buffalo和DWR比较方面，能快速上手，两者结合起来使用就更加灵活了。<br />      再结合两者使用时，建议使用DWR用作与服务器的交互，而将Buffalo提供的JavaScript对象用作回调函数处理DWR返回的结果。<br />      关于Buffalo和DWR的使用，请参看作者其他文章。<br /> 举例如下，我要使两各下拉框连动，一个下拉框的内容是省份，另一个的是城市，后台获取城市的类为Demo，获取城市的方法为getCities(String)，则代码如下：<br /></p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">head</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">title</span>
				<span style="COLOR: #000000">&gt;测试</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">title</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">link href</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&lt;%=styleSheet%&gt;</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> rel</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">stylesheet</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> type</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">text/css</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script src</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&lt;%=webapp%&gt;/common/scripts/validate.js</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script language</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">JavaScript</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> src</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&lt;%=webapp%&gt;/common/scripts/prototype.js</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script language</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">JavaScript</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> src</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&lt;%=webapp%&gt;/common/scripts/buffalo.js</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script language</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">JavaScript</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> src</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&lt;%=webapp%&gt;/common/scripts/template.js</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script src</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&lt;%=webapp%&gt;/dwr/engine.js</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #000000">&gt;&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script src</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&lt;%=webapp%&gt;/dwr/interface/Demo.js</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script </span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    function changeCities(province)<br /><img id="Codehighlighter1_562_606_Open_Image" onclick="this.style.display='none'; Codehighlighter1_562_606_Open_Text.style.display='none'; Codehighlighter1_562_606_Closed_Image.style.display='inline'; Codehighlighter1_562_606_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_562_606_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_562_606_Closed_Text.style.display='none'; Codehighlighter1_562_606_Open_Image.style.display='inline'; Codehighlighter1_562_606_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />    </span>
				<span id="Codehighlighter1_562_606_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_562_606_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        Buffalo.Bind.bind(</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">city</span>
						<span style="COLOR: #000000">"</span>
						<span style="COLOR: #000000">, categories);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    function changeProvince(province)<br /><img id="Codehighlighter1_644_688_Open_Image" onclick="this.style.display='none'; Codehighlighter1_644_688_Open_Text.style.display='none'; Codehighlighter1_644_688_Closed_Image.style.display='inline'; Codehighlighter1_644_688_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_644_688_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_644_688_Closed_Text.style.display='none'; Codehighlighter1_644_688_Open_Image.style.display='inline'; Codehighlighter1_644_688_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />    </span>
				<span id="Codehighlighter1_644_688_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_644_688_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        Demo.getCities(province,changeCities);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">head</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">body</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">form name</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">test</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">table  width</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">95%</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> border</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">0</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> align</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">center</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> cellpadding</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">0</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> cellspacing</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">0</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">tr </span>
				<span style="COLOR: #0000ff">class</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">list</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">td</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />          省份：<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">td</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">td width</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">70%</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> nowrap  </span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />          </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">select name</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">province</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> id</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">provinde</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> onchange</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">changeProvince(this.value)</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />           </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">option value</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">""</span>
				<span style="COLOR: #000000">&gt;-</span>
				<span style="COLOR: #000000">请省份</span>
				<span style="COLOR: #000000">-&lt;/</span>
				<span style="COLOR: #000000">option</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />           </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">option </span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">湖北</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">option</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">       <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">select</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">td</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />     </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">tr</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />     </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">tr </span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">td width</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">30%</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> nowrap </span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />           城市<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">td</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">td width</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">70%</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> nowrap </span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">select name</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">city</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> id</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">city</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;&lt;/</span>
				<span style="COLOR: #000000">select</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">td</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />     </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">tr</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">table</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">html:form</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">body</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
		</div>
<img src ="http://www.blogjava.net/onlylife/aggbug/36831.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/onlylife/" target="_blank">onlylife</a> 2006-03-22 13:11 <a href="http://www.blogjava.net/onlylife/archive/2006/03/22/36831.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DWR快速应用</title><link>http://www.blogjava.net/onlylife/archive/2006/03/22/36798.html</link><dc:creator>onlylife</dc:creator><author>onlylife</author><pubDate>Wed, 22 Mar 2006 02:56:00 GMT</pubDate><guid>http://www.blogjava.net/onlylife/archive/2006/03/22/36798.html</guid><wfw:comment>http://www.blogjava.net/onlylife/comments/36798.html</wfw:comment><comments>http://www.blogjava.net/onlylife/archive/2006/03/22/36798.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/onlylife/comments/commentRss/36798.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/onlylife/services/trackbacks/36798.html</trackback:ping><description><![CDATA[
		<p>DWR是一个开源的AJAX应用项目，其原理是自动生成Java类对应的JavaScript脚本，其快速应用步骤为：<br /><br />1、下载dwr.jar，地址为<a href="http://getahead.ltd.uk/dwr">http://getahead.ltd.uk/dwr</a><br />2、将dwr.jar复制到web应用的lib目录下<br />3、修改web.xml，增加如下servlet配置段<br /></p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">dwr</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">invoker</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">display</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">DWR Servlet</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">display</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #0000ff">class</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">uk.ltd.getahead.dwr.DWRServlet</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #0000ff">class</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">init</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">param</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />     </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">param</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">debug</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">param</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />     </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">param</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">value</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #0000ff">true</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">param</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">value</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">init</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">param</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">mapping</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">dwr</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">invoker</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">servlet</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">name</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img id="Codehighlighter1_356_392_Open_Image" onclick="this.style.display='none'; Codehighlighter1_356_392_Open_Text.style.display='none'; Codehighlighter1_356_392_Closed_Image.style.display='inline'; Codehighlighter1_356_392_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_356_392_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_356_392_Closed_Text.style.display='none'; Codehighlighter1_356_392_Open_Image.style.display='inline'; Codehighlighter1_356_392_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">url</span>
				<span style="COLOR: #000000">-</span>
				<span style="COLOR: #000000">pattern</span>
				<span style="COLOR: #000000">&gt;/</span>
				<span style="COLOR: #000000">dwr</span>
				<span id="Codehighlighter1_356_392_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span>
				<span id="Codehighlighter1_356_392_Open_Text">
						<span style="COLOR: #008000">/*</span>
						<span style="COLOR: #008000">&lt;/url-pattern&gt;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />&lt;/servlet-mapping&gt;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /></span>
				</span>
		</div>
		<p>
				<br /> 4、在web.xml同一目录下创建dwr.xml，内容如下<br /></p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<span style="COLOR: #008080"> 1</span>
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">&lt;!</span>
				<span style="COLOR: #000000">DOCTYPE dwr PUBLIC<br /></span>
				<span style="COLOR: #008080"> 2</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080"> 3</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">http://www.getahead.ltd.uk/dwr/dwr10.dtd</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080"> 4</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080"> 5</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">dwr</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080"> 6</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">allow</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080"> 7</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">create creator</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">new</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> javascript</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">JDate</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080"> 8</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">param name</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">class</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> value</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">java.util.Date</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">/&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080"> 9</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">create</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">10</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">create creator</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">new</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> javascript</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">Demo</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">11</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">param name</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">class</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> value</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">your.java.Bean</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">/&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">12</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">create</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">13</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">allow</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">14</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">dwr</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">15</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
		</div>
		<br />5、在页面中增加script片断，如：<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080">1</span><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">script type</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text/javascript</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> src</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">[WEBAPP]/dwr/interface/Demo.js</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">script</span><span style="COLOR: #000000">&gt;&lt;!--</span><span style="COLOR: #000000">调用类</span><span style="COLOR: #000000">--&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">2</span><span style="COLOR: #000000"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">script type</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">text/javascript</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> src</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">[WEBAPP]/dwr/engine.js</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">script</span><span style="COLOR: #000000">&gt;&lt;!--</span><span style="COLOR: #000000">DWR引擎</span><span style="COLOR: #000000">--&gt;</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">3</span><span style="COLOR: #000000"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span></div><br />6、在需要调用Demo功能的地方编写脚本<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">script</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />function handleGetData(str) <br /><img id="Codehighlighter1_38_54_Open_Image" onclick="this.style.display='none'; Codehighlighter1_38_54_Open_Text.style.display='none'; Codehighlighter1_38_54_Closed_Image.style.display='inline'; Codehighlighter1_38_54_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_38_54_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_38_54_Closed_Text.style.display='none'; Codehighlighter1_38_54_Open_Image.style.display='inline'; Codehighlighter1_38_54_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_38_54_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_38_54_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />  alert(str);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />Demo.getData(</span><span style="COLOR: #000000">42</span><span style="COLOR: #000000">, handleGetData);</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">getData是Demo的一个方法，参数是整型，handleGetData是回调函数，处理getData的返回值</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">script</span><span style="COLOR: #000000">&gt;</span></div><img src ="http://www.blogjava.net/onlylife/aggbug/36798.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/onlylife/" target="_blank">onlylife</a> 2006-03-22 10:56 <a href="http://www.blogjava.net/onlylife/archive/2006/03/22/36798.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>