锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩欧美三区,成人亚洲欧美,92久久精品http://www.aygfsteel.com/x03570227/category/37421.htmlzh-cnTue, 24 Feb 2009 20:45:47 GMTTue, 24 Feb 2009 20:45:47 GMT60YUI - treeView 閫氳繃JSON緇撴瀯鐨勬暟鎹瀯寤烘暟鎹〃鏍?/title><link>http://www.aygfsteel.com/x03570227/articles/255444.html</link><dc:creator>鑿滄澘</dc:creator><author>鑿滄澘</author><pubDate>Thu, 19 Feb 2009 04:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/x03570227/articles/255444.html</guid><wfw:comment>http://www.aygfsteel.com/x03570227/comments/255444.html</wfw:comment><comments>http://www.aygfsteel.com/x03570227/articles/255444.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/x03570227/comments/commentRss/255444.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/x03570227/services/trackbacks/255444.html</trackback:ping><description><![CDATA[<span style="font-family: Georgia">浠婂ぉ鍏堣涓媃UI鐨勬暟鎹〃鏍間腑,浠庢湇鍔$鑾峰彇鏁版嵁鍜屾牴鎹湇鍔$鏁版嵁鎺掑簭鐨勬柟娉?瀹樻柟紺轟緥鐨勫湴鍧:<a >http://developer.yahoo.com/yui/treeview/</a><br /> 棣栧厛鏄繀澶囩殑js,css鏂囦歡鐨勫紩鍏?鍙互浠庝互涓嬪湴鍧閰嶇疆:<a >http://developer.yahoo.com/yui/articles/hosting/?treeview#configure</a><br /> <br /> JSON鏁版嵁鏍煎紡<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.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">[<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />    'Label </span><span style="color: #000000">0</span><span style="color: #000000">',<br /> <img id="Codehighlighter1_15_95_Open_Image" onclick="this.style.display='none'; Codehighlighter1_15_95_Open_Text.style.display='none'; Codehighlighter1_15_95_Closed_Image.style.display='inline'; Codehighlighter1_15_95_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_15_95_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_15_95_Closed_Text.style.display='none'; Codehighlighter1_15_95_Open_Image.style.display='inline'; Codehighlighter1_15_95_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_15_95_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.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_15_95_Open_Text"><span style="color: #000000">{type:'Text', label:'text label </span><span style="color: #000000">1</span><span style="color: #000000">', title:'</span><span style="color: #0000ff">this</span><span style="color: #000000"> is the tooltip </span><span style="color: #0000ff">for</span><span style="color: #000000"> text label </span><span style="color: #000000">1</span><span style="color: #000000">'}</span></span><span style="color: #000000">,<br /> <img id="Codehighlighter1_99_212_Open_Image" onclick="this.style.display='none'; Codehighlighter1_99_212_Open_Text.style.display='none'; Codehighlighter1_99_212_Closed_Image.style.display='inline'; Codehighlighter1_99_212_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_99_212_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_99_212_Closed_Text.style.display='none'; Codehighlighter1_99_212_Open_Image.style.display='inline'; Codehighlighter1_99_212_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_99_212_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.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_99_212_Open_Text"><span style="color: #000000">{type:'Text', label:'branch </span><span style="color: #000000">1</span><span style="color: #000000">', title:'there should be children here', expanded:</span><span style="color: #0000ff">true</span><span style="color: #000000">, children:[<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        'Label </span><span style="color: #000000">1</span><span style="color: #000000">-</span><span style="color: #000000">0</span><span style="color: #000000">'<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />    ]}</span></span><span style="color: #000000">,<br /> <img id="Codehighlighter1_216_519_Open_Image" onclick="this.style.display='none'; Codehighlighter1_216_519_Open_Text.style.display='none'; Codehighlighter1_216_519_Closed_Image.style.display='inline'; Codehighlighter1_216_519_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_216_519_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_216_519_Closed_Text.style.display='none'; Codehighlighter1_216_519_Open_Image.style.display='inline'; Codehighlighter1_216_519_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_216_519_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.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_216_519_Open_Text"><span style="color: #000000">{type:'Text',label:'YAHOO',title:'</span><span style="color: #0000ff">this</span><span style="color: #000000"> should be an href', href:'http:</span><span style="color: #008000">//</span><span style="color: #008000">www.yahoo.com', target:'somewhere new'},</span><span style="color: #008000"><br /> <img id="Codehighlighter1_330_391_Open_Image" onclick="this.style.display='none'; Codehighlighter1_330_391_Open_Text.style.display='none'; Codehighlighter1_330_391_Closed_Image.style.display='inline'; Codehighlighter1_330_391_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_330_391_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_330_391_Closed_Text.style.display='none'; Codehighlighter1_330_391_Open_Image.style.display='inline'; Codehighlighter1_330_391_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #000000">    </span><span id="Codehighlighter1_330_391_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.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_330_391_Open_Text"><span style="color: #000000">{type:'HTML',html:'</span><span style="color: #000000"><</span><span style="color: #000000">a href</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">developer.yahoo.com/yui</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000">YUI</span><span style="color: #000000"></</span><span style="color: #000000">a</span><span style="color: #000000">></span><span style="color: #000000">'}</span></span><span style="color: #000000">,<br /> <img id="Codehighlighter1_395_516_Open_Image" onclick="this.style.display='none'; Codehighlighter1_395_516_Open_Text.style.display='none'; Codehighlighter1_395_516_Closed_Image.style.display='inline'; Codehighlighter1_395_516_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_395_516_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_395_516_Closed_Text.style.display='none'; Codehighlighter1_395_516_Open_Image.style.display='inline'; Codehighlighter1_395_516_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_395_516_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.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_395_516_Open_Text"><span style="color: #000000">{type:'MenuNode',label:'branch </span><span style="color: #000000">3</span><span style="color: #000000">',title:'</span><span style="color: #0000ff">this</span><span style="color: #000000"> is a menu node', expanded:</span><span style="color: #0000ff">false</span><span style="color: #000000">, children:[<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        'Label </span><span style="color: #000000">3</span><span style="color: #000000">-</span><span style="color: #000000">0</span><span style="color: #000000">',<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        'Label </span><span style="color: #000000">3</span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">'<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    ]}</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />]</span></div> </span><br /> 褰撶劧,瀹為檯鎯呭喌鏄綘涓嶄竴瀹氳繑鍥炰竴妯′竴鏍風殑鏍煎紡,浣嗗彲浠ユ牴鎹嚜宸辯殑緇撴瀯鏉ョ敓鎴愯繖鏍風殑鏍煎紡!<br /> 涓嬮潰鏄」鐩腑鐢ㄥ埌鐨勪竴涓敤鏉ヨ幏鍙栬繖縐嶆牸寮忕殑鏂規硶(娉?鎴戠殑鏂規硶灞炰簬姣旇緝絎ㄧ殑鏂規硶,鐢ㄧ殑鏄掑綊寰幆)<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: #000000">YAHOO.uunav.getCatalogTree </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">function</span><span style="color: #000000">(root){<br />             </span><span style="color: #0000ff">var</span><span style="color: #000000"> str;<br />             $.ajax({<br />                 url:</span><span style="color: #000000">"</span><span style="color: #000000">${contextPath}/ajax/catalog!initTree.act</span><span style="color: #000000">"</span><span style="color: #000000">,  </span><span style="color: #008000">//</span><span style="color: #008000">浠庢湇鍔″櫒鑾峰彇鏁版嵁</span><span style="color: #008000"><br /> </span><span style="color: #000000">                dataType:</span><span style="color: #000000">"</span><span style="color: #000000">json</span><span style="color: #000000">"</span><span style="color: #000000">,<br />                 async :</span><span style="color: #0000ff">false</span><span style="color: #000000">,<br />                 success:</span><span style="color: #0000ff">function</span><span style="color: #000000">(data){<br />                     </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #0000ff">typeof</span><span style="color: #000000">(data.records)</span><span style="color: #000000">!=</span><span style="color: #000000">"</span><span style="color: #000000">undefined</span><span style="color: #000000">"</span><span style="color: #000000"> ){<br />                         str</span><span style="color: #000000">=</span><span style="color: #000000">createNodes(data.records,</span><span style="color: #000000">"</span><span style="color: #000000">menu</span><span style="color: #000000">"</span><span style="color: #000000">);  </span><span style="color: #008000">//</span><span style="color: #008000">涓涓掑綊鐨勫嚱鏁?鐢ㄤ簬鐢熸垚絎﹀悎YUI鏍戞爣鍑嗙殑JSON瀵硅薄</span><span style="color: #008000"><br /> </span><span style="color: #000000">                    }<br />                 }<br />             });<br />             </span><span style="color: #0000ff">return</span><span style="color: #000000"> eval(str); </span><span style="color: #008000">//</span><span style="color: #008000">鍏跺疄鍒氬垰鐨凷TR閭e彧鏄釜瀛楃涓?鏈鍚庨氳繃eval鏂規硶鍙互杞垚瀵硅薄.</span><span style="color: #008000"><br /> </span><span style="color: #000000">        }</span></div> <br /> 鏁版嵁鍑嗗濂戒簡,涓嬩竴姝ュ氨鏄瀯寤烘爲浜?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: #008000">//</span><span style="color: #008000">鏋勫緩鏍戠粨鏋?/span><span style="color: #008000"><br /> </span><span style="color: #000000">        YAHOO.uunav.buildTree</span><span style="color: #000000">=</span><span style="color: #0000ff">function</span><span style="color: #000000">(treeContent){<br />             </span><span style="color: #0000ff">var</span><span style="color: #000000"> treeNodes </span><span style="color: #000000">=</span><span style="color: #000000"> YAHOO.uunav.getCatalogTree(</span><span style="color: #000000">0</span><span style="color: #000000">);<br />             </span><span style="color: #0000ff">var</span><span style="color: #000000"> tree</span><span style="color: #000000">=</span><span style="color: #0000ff">new</span><span style="color: #000000"> YAHOO.widget.TreeView(treeContent,treeNodes);<br />             <br />             tree.render();<br />             </span><span style="color: #0000ff">return</span><span style="color: #000000"> tree;<br />         }</span></div> <br /> 涓婇潰鐨勫彧鏄釜鏂規硶,闇瑕佸湪欏甸潰load鐨勬椂鍊欏姞杞?YUI鏈夊畠鑷繁鐨刲oad浜嬩歡,浣嗘垜鏇村枩嬈QUERY鐨?鍐欐硶姣旇緝綆鍗?鍛靛懙<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 id="Codehighlighter1_30_86_Open_Image" onclick="this.style.display='none'; Codehighlighter1_30_86_Open_Text.style.display='none'; Codehighlighter1_30_86_Closed_Image.style.display='inline'; Codehighlighter1_30_86_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_30_86_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_30_86_Closed_Text.style.display='none'; Codehighlighter1_30_86_Open_Image.style.display='inline'; Codehighlighter1_30_86_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #000000">        $(document).ready(</span><span style="color: #0000ff">function</span><span style="color: #000000">()</span><span id="Codehighlighter1_30_86_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.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_30_86_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">var</span><span style="color: #000000"> tree </span><span style="color: #000000">=</span><span style="color: #000000"> YAHOO.uunav.buildTree(</span><span style="color: #000000">"</span><span style="color: #000000">catalogTree</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000">);</span></div> <br /> 濡傛灉浣犵殑鏍戝彧鏄兂鍋氳彍鍗?榪炴帴涔嬬敤,鍒拌繖閲屽氨鍙互浜?浣嗗鏋滃笇鏈涜兘澶熷湪鍝嶅簲鍗曞嚮浜嬩歡鐨勬椂鍊欏仛鍑虹偣鍏朵粬鍔ㄤ綔,閭h繕闇瑕佺粰tree娉ㄥ唽浜嬩歡<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: #000000">tree.subscribe('clickEvent',</span><span style="color: #0000ff">function</span><span style="color: #000000">(oArgs) {</span><span style="color: #008000"><br /> </span><span style="color: #000000">                treeNodeClick(oArgs.node.data.id);<br />             });</span></div> <br /> 鍚堣搗鏉ュ簲璇ユ槸涓嬮潰榪欎釜鏍峰瓙<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: #000000">$(document).ready(</span><span style="color: #0000ff">function</span><span style="color: #000000">(){<br />             </span><span style="color: #0000ff">var</span><span style="color: #000000"> tree </span><span style="color: #000000">=</span><span style="color: #000000"> YAHOO.uunav.buildTree(</span><span style="color: #000000">"</span><span style="color: #000000">catalogTree</span><span style="color: #000000">"</span><span style="color: #000000">);<br />             <br />             </span><span style="color: #008000">//</span><span style="color: #008000">娣誨姞緇撶偣鍗曞嚮浜嬩歡</span><span style="color: #008000"><br /> </span><span style="color: #000000">            tree.subscribe('clickEvent',</span><span style="color: #0000ff">function</span><span style="color: #000000">(oArgs) {</span><span style="color: #008000"><br /> </span><span style="color: #000000">                treeNodeClick(oArgs.node.data.id);<br />             });<br />         });</span></div> <br /> 瀵瑰弬鏁板仛涓嬭В閲?<br /> oArgs.node.data:琛ㄧず鐨勬槸榪欎釜緇撶偣甯︾殑鏁版嵁,鑰岃繖浜涙暟鎹氨鏄湪鐢熸垚鏍戠殑JSON瀵硅薄閲岄潰鐨?浜嬪疄涓?榛樿鐨勬渶綆鍗曠殑鏍戠粨鐐瑰茍娌℃湁oArgs.node.data.id榪欎釜鏁版嵁,榪欎釜鏁版嵁鏄湪鐢熸垚鏍戠粨鐐笿SON瀵硅薄鏃跺姞榪涘幓鐨?瑙佸涓嬩唬鐮?<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: #000000">        </span><span style="color: #0000ff">function</span><span style="color: #000000"> createNodes(list,nodeType){   //榪欏氨鏄墠闈㈢殑閫掑綊鐢熸垚緇撶偣JSON瀵硅薄鐨勫嚱鏁?br />             </span><span style="color: #0000ff">var</span><span style="color: #000000"> treeNodeStr</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">[</span><span style="color: #000000">"</span><span style="color: #000000">;<br />             $(list).each(</span><span style="color: #0000ff">function</span><span style="color: #000000">(i){</span><span style="color: #008000"><br /> </span><span style="color: #000000">                </span><span style="color: #0000ff">if</span><span style="color: #000000">(i</span><span style="color: #000000">></span><span style="color: #000000">0</span><span style="color: #000000">) treeNodeStr</span><span style="color: #000000">+=</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> </span><span style="color: #008000"><br /> </span><span style="color: #000000">                treeNodeStr</span><span style="color: #000000">+=</span><span style="color: #000000">"</span><span style="color: #000000">{\</span><span style="color: #000000">"</span><span style="color: #000000">label\</span><span style="color: #000000">"</span><span style="color: #000000">:\</span><span style="color: #000000">""</span><span style="color: #000000">+this.names+</span><span style="color: #000000">"</span><span style="color: #000000">\</span><span style="color: #000000">"</span><span style="color: #000000">,\</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">"</span><span style="color: #000000">+</span><span style="color: #0000ff">this</span><span style="color: #000000">.id</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">;    //榪欓噷鐨刬d灝辨槸data瀵硅薄閲岀殑id<br /> </span><span style="color: #000000">                </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #0000ff">this</span><span style="color: #000000">.children.length</span><span style="color: #000000">></span><span style="color: #000000">0</span><span style="color: #000000">){<br />                     treeNodeStr</span><span style="color: #000000">+=</span><span style="color: #000000">"</span><span style="color: #000000">\</span><span style="color: #000000">"</span><span style="color: #000000">children\</span><span style="color: #000000">"</span><span style="color: #000000">:</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">createNodes(</span><span style="color: #0000ff">this</span><span style="color: #000000">.children,nodeType)</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">;</span><span style="color: #008000"><br /> </span><span style="color: #000000">                }<br />                 treeNodeStr</span><span style="color: #000000">+=</span><span style="color: #000000">"</span><span style="color: #000000">\</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">""</span><span style="color: #000000">+nodeType+</span><span style="color: #000000">"</span><span style="color: #000000">\</span><span style="color: #000000">"</span><span style="color: #000000">}</span><span style="color: #000000">"</span><span style="color: #000000">;<br />             });<br />             treeNodeStr</span><span style="color: #000000">+=</span><span style="color: #000000">"</span><span style="color: #000000">]</span><span style="color: #000000">"</span><span style="color: #000000">;</span><span style="color: #008000"><br /> </span><span style="color: #000000">            </span><span style="color: #0000ff">return</span><span style="color: #000000"> treeNodeStr;<br />         }</span></div> 鍚屾牱鍙互閫氳繃oArgs.node.data.label璁塊棶緇撶偣鍚嶅瓧,涓嶈繃涔熷彲浠ョ洿鎺ラ氳繃oArgs.node.label鐩存帴璁塊棶label,鑷充簬浠涔堝師鍥?鐪嬩簡<a >API</a>灝辯煡閬撲簡<br /> <br /> 鐪嬩笂鍘昏矊浼艱繕鏄湁浜涘鏉?澶у鍙綋鏄釜鍙傝冨惂!</span> <img src ="http://www.aygfsteel.com/x03570227/aggbug/255444.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/x03570227/" target="_blank">鑿滄澘</a> 2009-02-19 12:55 <a href="http://www.aygfsteel.com/x03570227/articles/255444.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>YUI-dataTable 鏈嶅姟绔垎欏靛強鍔ㄦ佹帓搴?/title><link>http://www.aygfsteel.com/x03570227/articles/253734.html</link><dc:creator>鑿滄澘</dc:creator><author>鑿滄澘</author><pubDate>Sat, 07 Feb 2009 13:25:00 GMT</pubDate><guid>http://www.aygfsteel.com/x03570227/articles/253734.html</guid><wfw:comment>http://www.aygfsteel.com/x03570227/comments/253734.html</wfw:comment><comments>http://www.aygfsteel.com/x03570227/articles/253734.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/x03570227/comments/commentRss/253734.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/x03570227/services/trackbacks/253734.html</trackback:ping><description><![CDATA[     鎽樿: 浠婂ぉ鍏堣涓媃UI鐨勬暟鎹〃鏍間腑,浠庢湇鍔$鑾峰彇鏁版嵁鍜屾牴鎹湇鍔$鏁版嵁鎺掑簭鐨勬柟娉?瀹樻柟紺轟緥鐨勫湴鍧:http://developer.yahoo.com/yui/examples/datatable/dt_dynamicdata.html 棣栧厛鏄繀澶囩殑js,css鏂囦歡鐨勫紩鍏?鍙互浠庝互涓嬪湴鍧閰嶇疆:http://developer.yahoo.com/yui/articles/hosting/?datat...  <a href='http://www.aygfsteel.com/x03570227/articles/253734.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/x03570227/aggbug/253734.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/x03570227/" target="_blank">鑿滄澘</a> 2009-02-07 21:25 <a href="http://www.aygfsteel.com/x03570227/articles/253734.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">富顺县</a>| <a href="http://" target="_blank">长海县</a>| <a href="http://" target="_blank">威海市</a>| <a href="http://" target="_blank">天全县</a>| <a href="http://" target="_blank">遂宁市</a>| <a href="http://" target="_blank">绥芬河市</a>| <a href="http://" target="_blank">江山市</a>| <a href="http://" target="_blank">青浦区</a>| <a href="http://" target="_blank">叙永县</a>| <a href="http://" target="_blank">家居</a>| <a href="http://" target="_blank">濉溪县</a>| <a href="http://" target="_blank">大埔县</a>| <a href="http://" target="_blank">石楼县</a>| <a href="http://" target="_blank">固镇县</a>| <a href="http://" target="_blank">连江县</a>| <a href="http://" target="_blank">黎川县</a>| <a href="http://" target="_blank">横峰县</a>| <a href="http://" target="_blank">邵阳市</a>| <a href="http://" target="_blank">平果县</a>| <a href="http://" target="_blank">桃源县</a>| <a href="http://" target="_blank">绥化市</a>| <a href="http://" target="_blank">阿尔山市</a>| <a href="http://" target="_blank">商河县</a>| <a href="http://" target="_blank">昌黎县</a>| <a href="http://" target="_blank">舟曲县</a>| <a href="http://" target="_blank">巧家县</a>| <a href="http://" target="_blank">漯河市</a>| <a href="http://" target="_blank">阿尔山市</a>| <a href="http://" target="_blank">华蓥市</a>| <a href="http://" target="_blank">卢氏县</a>| <a href="http://" target="_blank">汉阴县</a>| <a href="http://" target="_blank">英山县</a>| <a href="http://" target="_blank">万荣县</a>| <a href="http://" target="_blank">日喀则市</a>| <a href="http://" target="_blank">东山县</a>| <a href="http://" target="_blank">元阳县</a>| <a href="http://" target="_blank">镇原县</a>| <a href="http://" target="_blank">莆田市</a>| <a href="http://" target="_blank">邵阳县</a>| <a href="http://" target="_blank">海南省</a>| <a href="http://" target="_blank">惠州市</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>