锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成av人片天堂网老年人,色噜噜综合亚洲av中文无码,亚洲成av人片在线观看无码不卡http://www.tkk7.com/redhatlinux/category/35463.html涓氱簿浜庡嫟鑽掍簬瀣?琛屾垚浜庢濇瘉浜庨殢 Spring,SpringSecurity,Quartz,Hibernate,Strutszh-cnWed, 11 Feb 2009 16:18:34 GMTWed, 11 Feb 2009 16:18:34 GMT60銆愯漿杞姐戣В鍐蟲湁鍏矱xt Grid瀵煎嚭Excel鍦↗SP絳夌幆澧冧腑涓嶅彲鐢ㄧ殑闂http://www.tkk7.com/redhatlinux/archive/2009/02/11/254236.htmlHibernatingHibernatingWed, 11 Feb 2009 05:31:00 GMThttp://www.tkk7.com/redhatlinux/archive/2009/02/11/254236.htmlhttp://www.tkk7.com/redhatlinux/comments/254236.htmlhttp://www.tkk7.com/redhatlinux/archive/2009/02/11/254236.html#Feedback0http://www.tkk7.com/redhatlinux/comments/commentRss/254236.htmlhttp://www.tkk7.com/redhatlinux/services/trackbacks/254236.html                                         瑙e喅鏈夊叧Ext Grid瀵煎嚭Excel鍦↗SP絳夌幆澧冧腑涓嶅彲鐢ㄧ殑闂
        鏈夊叧ExtGrid瀵煎嚭Excel鐨勫疄鐜版柟寮忥紝緗戜笂宸茬粡鏈夊緢澶氾紝瀹樻柟涔熺粰鍑轟簡涓涓柟妗堬紝浠g爜涓嶆槸寰堝畬鍠勶紝涓嶈繃宸茬粡鏈夐珮浜哄榪欎釜榪涜浜嗕慨姝c傚叿浣撳疄鐜版柟寮忓強浠g爜鎴戣繖閲屽氨涓嶅啀澶氳浜嗭紝澶у鍙互鍙傜湅錛?br /> http://www.dojochina.com/index.php?q=node/1254錛岄檮浠訛細gridToExcel.js.txt
鍏跺熀鏈濇兂鏄細瀹㈡埛绔牴鎹瓽rid鏁版嵁鐢熸垚Excel鏍煎紡鐨刋ML鏁版嵁錛岀劧鍚庡彂閫佸埌涓涓湇鍔$鏂囦歡錛屾湇鍔$鏂囦歡閫?br /> 榪囪瀹欳ontent-Type鏉ュ疄鐜癊xcel鐨勪笅杞姐傚叾涓?#8220;瀵煎嚭Excel”鎸夐挳鐐瑰嚮鎵ц鐨勪唬鐮佸涓嬶細

 1if (Ext.isIE6 || Ext.isIE7 || Ext.isSafari || Ext.isSafari2 || Ext.isSafari3) 
 2    if (! Ext.fly('frmDummy')) 
 3        var frm = document.createElement('form'); 
 4        frm.id = 'frmDummy'; 
 5        frm.name = id; 
 6        frm.className = 'x-hidden'; 
 7        document.body.appendChild(frm); 
 8    }
 
 9    Ext.Ajax.request(
10        url: '/exportexcel.php', 
11        method: 'POST', 
12        form: Ext.fly('frmDummy'), 
13        callback: function(o, s, r) 
14            //alert(r.responseText); 
15        }

16        isUpload: true
17        params: {exportContent: vExportContent} 
18    }

19}
 else 
20    document.location = 'data:application/vnd.ms-excel;base64,' + Base64.encode(vExportContent); 
21}

渚嬪瓙涓湇鍔$浣跨敤鐨凱HP錛岃繖孌典唬鐮佸湪PHP涓彲鑳藉彲浠ュ緢濂界殑宸ヤ綔錛屼絾鏄鏋滃埌浜咼SP絳夌幆澧冧笅錛屽氨鍑虹幇浜嗛棶
棰橈紝瀵煎嚭鏁版嵁鍙兘鏄┖銆?br />  闂鍑哄湪鍝噷鍛紵涓婇潰榪欓儴鍒嗕唬鐮佷腑鐨刟jax鎻愪氦鍏跺疄騫朵笉鏄湡姝g殑ajax鎻愪氦錛屽洜涓篴jax鎻愪氦鏄湪鍚庡彴鎵ц錛屽洜
姝や笉鍙兘瀹炵幇涓嬭澆錛屽彲浠ョ湅鍒拌繖閲屾湁form鍜宨sUpload涓や釜鍙傛暟錛欵xt鐨刟jax璇鋒眰涓鏋滈厤緗簡isUpload:true錛屽垯鍏?br /> ajax灝變笉鏄湡姝g殑ajax璇鋒眰錛岃屾槸閫氳繃鍒涘緩涓涓殣钘忕殑Iframe錛屽茍閫氳繃form鐨則arget鎸囧悜榪欎釜iframe鏉ユ彁浜ゆ暟鎹紝騫?br /> 涓斿彂閫佺殑header閲屽皢content-type璁句負浜唌ultipart/form錛屽湪JSP涓笉鑳芥垚鍔熷鍑虹殑鍘熷洜灝卞湪榪欓噷銆傝繖鏍風殑鎻愪氦鏂瑰紡
鍏跺弬鏁伴氳繃request.getParameter鏄彇涓嶅埌鐨勶紝褰撶劧浣犲彲浠ヤ嬌鐢ㄤ笂浼犵粍浠舵潵鑾峰彇錛屼絾榪欐牱浠g爜灝卞彉寰楀鏉傘備笅闈?br /> 鏉ヨВ鍐寵繖涓棶棰橈紝鏃㈢劧榪欓噷鐨凙jax浣跨敤鏄竴涓ā鎷熺殑form鎻愪氦錛岄偅鎴戜滑鍏跺疄鍙互瀹屽叏涓嶇敤銆傛垜浠洿鎺ョ敤form鎻?br /> 浜や笉鏄洿鐪佷簨鍚楋紵瑙e喅鍔炴硶濡備笅錛氬垱寤轟竴涓殣钘廸orm錛屽叾target璁劇疆涓篲blank錛岀劧鍚庡湪鍏跺唴閮ㄥ垱寤轟竴涓殣钘忓煙瀛?br /> 鏀緓ml鏁版嵁錛岀劧鍚庨氳繃POST鏂瑰紡鎻愪氦榪欎釜form鍗沖彲銆?/p>

瀹炵幇浠g爜錛?/p>

 1var vExportContent = grid.getExcelXml(); 
 2if (Ext.isIE6 || Ext.isIE7 || Ext.isSafari || Ext.isSafari2 || Ext.isSafari3) 
 3    var fd=Ext.get('frmDummy'); 
 4    if (!fd) 
 5        fd=Ext.DomHelper.append(Ext.getBody(),{tag:'form',method:'post',id:'frmDummy',action:'exportexcel.jsp', target:'_blank',name:'frmDummy',cls:'x-hidden',cn:[ 
 6            {tag:'input',name:'exportContent',id:'exportContent',type:'hidden'} 
 7        ]}
,true); 
 8    }
 
 9    fd.child('#exportContent').set({value:vExportContent}); 
10    fd.dom.submit(); 
11}
 else 
12    document.location = 'data:application/vnd.ms-excel;base64,'+Base64.encode(vExportContent); 
13}

14

JSP浠g爜錛?br />

1<%  
2response.setHeader("Content-Type","application/force-download"); 
3response.setHeader("Content-Type","application/vnd.ms-excel"); 
4response.setHeader("Content-Disposition","attachment;filename=export.xls"); 
5out.print(request.getParameter("exportContent")); 
6%>


 瀹屾暣浠g爜涓嬭澆錛?a href="/Files/redhatlinux/grid2excel.rar">grid2excel.rar



Hibernating 2009-02-11 13:31 鍙戣〃璇勮
]]>
銆愯漿杞姐慐xt.get()涓嶦xt.fly()涔嬪尯鍒?/title><link>http://www.tkk7.com/redhatlinux/archive/2009/02/11/254220.html</link><dc:creator>Hibernating</dc:creator><author>Hibernating</author><pubDate>Wed, 11 Feb 2009 03:51:00 GMT</pubDate><guid>http://www.tkk7.com/redhatlinux/archive/2009/02/11/254220.html</guid><wfw:comment>http://www.tkk7.com/redhatlinux/comments/254220.html</wfw:comment><comments>http://www.tkk7.com/redhatlinux/archive/2009/02/11/254220.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/redhatlinux/comments/commentRss/254220.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/redhatlinux/services/trackbacks/254220.html</trackback:ping><description><![CDATA[<p align="center"><span style="font-size: 18pt; font-family: 闅朵功">Ext.get()涓嶦xt.fly()涔嬪尯鍒?/span><br /> 浠庝竴寮濮嬫帴瑙xt灝辯湅鍒版湁Ext.fly榪欎釜鍑芥暟錛屽綋鏃惰寰楄繖涓窡Ext.get娌′粈涔堝尯鍒紝鍔犱箣褰撴椂瀵笿S鎬ц兘鐩稿叧<br /> 闂璁よ瘑鑲ゆ祬錛屼篃涓鐩存病鏈夊湪鎰忓叾鍖哄埆錛屼粖鏃ョ湅learning extjs涓涔︼紝鐪嬪埌浜嗘湁涓撻棬瀵笶xt.fly鐗瑰埆寮鴻皟鐨勪竴澶勶細<br /> </p> <p class="code"><code><strong>This isn't exactly a speed tip, but is more about conserving memory by using something called <br /> a "flyweight" to perform simple tasks, which results in higher speed by not clogging up the <br /> browser's memory</strong><br /> </code></p> <p>澶ф鎰忔濅篃灝辨槸Ext.Fly閲囩敤flyweight妯″紡浣挎墍鏈塮ly鍑烘潵鐨勫厓绱犲叡浜唴瀛橈紝鍙互鎻愰珮紼嬪簭鎵ц閫熷害錛屽噺灝戝唴瀛樺崰鐢ㄣ?br /> </p> <p>        榪欐璇濇縺璧蜂簡鎴戝榪欎釜鍑芥暟鐨勫叴瓚o紝姣曠珶榪戞鏃墮棿涓鐩村湪鎼濲S鎬ц兘浼樺寲鐩稿叧闂錛屽“鍐呭瓨”榪欎釜瀛楃溂<br /> 闈炲父鏁忔劅銆傚ぇ姒傜湅浜嗕笅Ext婧愮爜瀵筭et鍜宖ly瀹炵幇鐨勯儴鍒嗭紝鐒跺悗鍦ㄧ綉涓婃煡鐪嬩簡涓浜涜祫鏂欙紝緇堜簬瀵逛粬浠箣闂寸殑寮傚悓鏈?br /> 浜嗕釜姣旇緝娣卞叆鐨勮璇嗐?br /> Ext鐨勫畼鏂瑰紑鍙戜漢鍛樼粰鍑轟簡濡備笅鐨勮В閲婏細<br /> </p> <p class="code"><code><strong>Ext.Element wraps a lot of functionality around DOM element/node, for example functions like hide, show, <br /> all animation stuff, dimensions getting and setting function and a lot more. <br /> <br /> Ext.Element keeps reference to DOM element it is wrapped around in dom property. Once you have an Ext.Element<br />  (e.g. you call Ext.get('some-d') it is an instance of Element class and you can work with it as such. <br /> <br /> Now, imagine that you need to hide 1000 DOM nodes, you call 1000 times Ext.get('some-one-of-<br /> 1000-id').hide() so you create 1000 instances of Element just to call one function: hide. <br /> <br /> Ext.fly is one instance of Ext.Element with "replaceable" DOM node it is wrapped around. <br /> If you call 1000 times Ext.fly('some-one-of-1000-id').hide() you 1000 times replace dom property of one instance of Ext.Element. <br /> <br /> Result: higher performance, lower memory usage. <br /> <br /> You only need to keep in mind that you cannot keep Element returned by Ext.fly for later use as <br /> it's dom will sooner or later gets replaced by another one.<br /> </strong></code></p> <p><strong>榪欐璇濅腑錛屽ぇ鑷寸殑鎰忔濆涓嬶細<br /> </strong></p> <p>Ext.Element鏄疎xt瀵笵om鍏冪礌鐨勪竴涓己鏈夊姏灝佽錛屽畠?yōu)畞瑁呬簡寰堝鏂逛究瀵筪om鎿嶄綔鐨勬帴鍙?騫墮氳繃Element鐨刣om灞炴?br /> 寮曠敤瀵瑰簲鐨刣om鍏冪礌)錛屽洜姝ゆ瘡鍒涘緩涓涓狤lement鍏冪礌閮藉皢娑堣椾笉灝戠殑鍐呭瓨(涓昏鏄ぇ閲忕殑鎿嶄綔鎺ュ彛娑堣?錛屽洜姝ゅ<br /> 鏋滃垱寤鴻繃澶氱殑Element鍏冪礌蹇呯劧瀵艱嚧鍐呭瓨鍗犵敤鐨勫墽澧炲拰緋葷粺鎬ц兘鐨勪笅闄嶃?br /> </p> <p>Ext.get鍜孍xt.fly榪斿洖鐨勯兘鏄竴涓狤lement瀵硅薄錛屼絾鏄疎xt.get榪斿洖鐨勬槸涓涓嫭绔嬬殑Element錛屾嫢鏈夎嚜宸辯嫭绔嬬殑鎿嶄綔鎺ュ彛<br /> 灝佽錛屽彲浠ュ皢鍏惰繑鍥炲間繚瀛樺埌鍙橀噺涓紝浠ヤ究浠ュ悗璋冪敤鎿嶄綔絳夛紝榪欐牱涓洪噸鐢ㄥ甫鏉ヤ簡鏂逛究銆備絾鏄畠鐨勪竴涓緢澶х己<br /> 鐐瑰氨鏄唴瀛樻秷鑰楅棶棰橈紝鍋囧璋冪敤Ext.get(id)1000嬈★紝鍒欎細鍦ㄥ唴瀛樹腑鍒涘緩1000涓嫭绔婨lement錛屽叾鍐呭瓨鍗犵敤鍙兂鑰?br /> 鐭ャ備絾鏄緢澶氭椂鍊欐垜浠彲鑳戒粎浠呭彧鏄璇om鍏冪礌鎵ц涓嬈″緢綆鍗曠殑鎿嶄綔錛屽闅愯棌(hide)錛岃繖鏍峰鏋滄瘡嬈¢兘鍒涘緩<br /> 涓涓嫭绔婨lement鏀懼湪鍐呭瓨涓紝瀹炲湪鏄鍐呭瓨鐨勫法澶ф氮璐癸紝鍥犳褰撴垜浠湪鍙渶瑕佹墽琛屼竴嬈℃搷浣滄垨鑰呬竴涓緢綆鍗?br /> 鐨勬搷浣滄椂錛岄噰鐢‥xt.get灝辨樉寰楀緢涓嶅悎鐞嗐侲xt.fly姝f槸涓轟簡瑙e喅榪欎釜闂鑰屽嚭鐜幫紝瀹冮氳繃浣挎瘡嬈″垱寤虹殑Element鍏?br /> 浜唴瀛樹腑鐨勪竴濂楁搷浣滄帴鍙f潵杈懼埌鑺傜渷鍐呭瓨鐨勬晥鏋溿?/p> <p><strong>涓嬮潰鏉ョ湅Ext.fly鐨勫疄鐜頒唬鐮?鎴戠畝鍗曞姞浜嗕竴浜涙敞閲?錛?br /> </strong></p> <pre jquery1234322781687="5"> <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 id="Codehighlighter1_22_23_Open_Image" onclick="this.style.display='none'; Codehighlighter1_22_23_Open_Text.style.display='none'; Codehighlighter1_22_23_Closed_Image.style.display='inline'; Codehighlighter1_22_23_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_22_23_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_22_23_Closed_Text.style.display='none'; Codehighlighter1_22_23_Open_Image.style.display='inline'; Codehighlighter1_22_23_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: #0000ff">var</span><span style="color: #000000"> flyFn </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">function</span><span style="color: #000000">()</span><span id="Codehighlighter1_22_23_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 alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_22_23_Open_Text"><span style="color: #000000">{}</span></span><span style="color: #000000">; <br /> </span><span style="color: #008080"> 2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />flyFn.prototype </span><span style="color: #000000">=</span><span style="color: #000000"> El.prototype; <br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">var</span><span style="color: #000000"> _cls </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> flyFn(); </span><span style="color: #008000">//</span><span style="color: #008000">灝咵lement鐨勬墍鏈夋搷浣滄帴鍙f斁鍦╛cls涓?nbsp;</span><span style="color: #008000"><br /> </span><span style="color: #008080"> 4</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"> <br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000"> dom is optional </span><span style="color: #008000"><br /> </span><span style="color: #008080"> 6</span><span style="color: #008000"><img id="Codehighlighter1_160_184_Open_Image" onclick="this.style.display='none'; Codehighlighter1_160_184_Open_Text.style.display='none'; Codehighlighter1_160_184_Closed_Image.style.display='inline'; Codehighlighter1_160_184_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_160_184_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_160_184_Closed_Text.style.display='none'; Codehighlighter1_160_184_Open_Image.style.display='inline'; Codehighlighter1_160_184_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #000000">El.Flyweight </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">function</span><span style="color: #000000">(dom)</span><span id="Codehighlighter1_160_184_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 alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_160_184_Open_Text"><span style="color: #000000">{ <br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">this</span><span style="color: #000000">.dom </span><span style="color: #000000">=</span><span style="color: #000000"> dom; <br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000">浠呭寘鍚竴涓猟om灞炴х殑Object </span><span style="color: #008000"><br /> </span><span style="color: #008080"> 9</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"> <br /> </span><span style="color: #008080">10</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />El.Flyweight.prototype </span><span style="color: #000000">=</span><span style="color: #000000"> _cls; </span><span style="color: #008000">//</span><span style="color: #008000">灝嗘搷浣滄帴鍙e鍒剁粰Element瀹炰緥瀵硅薄 </span><span style="color: #008000"><br /> </span><span style="color: #008080">11</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">El.Flyweight.prototype.isFlyweight </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">true</span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000">鏍囧織璇lement鏄痜lyweight瀵硅薄 </span><span style="color: #008000"><br /> </span><span style="color: #008080">12</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"> <br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img id="Codehighlighter1_352_353_Open_Image" onclick="this.style.display='none'; Codehighlighter1_352_353_Open_Text.style.display='none'; Codehighlighter1_352_353_Closed_Image.style.display='inline'; Codehighlighter1_352_353_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_352_353_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_352_353_Closed_Text.style.display='none'; Codehighlighter1_352_353_Open_Image.style.display='inline'; Codehighlighter1_352_353_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />El._flyweights </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span id="Codehighlighter1_352_353_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 alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_352_353_Open_Text"><span style="color: #000000">{}</span></span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000">flyweight瀵硅薄緙撳瓨瀹瑰櫒 </span><span style="color: #008000"><br /> </span><span style="color: #008080">14</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"> <br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img id="Codehighlighter1_405_747_Open_Image" onclick="this.style.display='none'; Codehighlighter1_405_747_Open_Text.style.display='none'; Codehighlighter1_405_747_Closed_Image.style.display='inline'; Codehighlighter1_405_747_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_405_747_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_405_747_Closed_Text.style.display='none'; Codehighlighter1_405_747_Open_Image.style.display='inline'; Codehighlighter1_405_747_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />El.fly </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">function</span><span style="color: #000000">(el, named)</span><span id="Codehighlighter1_405_747_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 alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_405_747_Open_Text"><span style="color: #000000">{ <br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    named </span><span style="color: #000000">=</span><span style="color: #000000"> named </span><span style="color: #000000">||</span><span style="color: #000000"> '_global'; <br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    el </span><span style="color: #000000">=</span><span style="color: #000000"> Ext.getDom(el); </span><span style="color: #008000">//</span><span style="color: #008000">鍙栧緱dom瀵硅薄 </span><span style="color: #008000"><br /> </span><span style="color: #008080">18</span><span style="color: #008000"><img id="Codehighlighter1_488_517_Open_Image" onclick="this.style.display='none'; Codehighlighter1_488_517_Open_Text.style.display='none'; Codehighlighter1_488_517_Closed_Image.style.display='inline'; Codehighlighter1_488_517_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_488_517_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_488_517_Closed_Text.style.display='none'; Codehighlighter1_488_517_Open_Image.style.display='inline'; Codehighlighter1_488_517_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">!</span><span style="color: #000000">el)</span><span id="Codehighlighter1_488_517_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 alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_488_517_Open_Text"><span style="color: #000000">{ <br /> </span><span style="color: #008080">19</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">; <br /> </span><span style="color: #008080">20</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"> <br /> </span><span style="color: #008080">21</span><span style="color: #000000"><img id="Codehighlighter1_550_646_Open_Image" onclick="this.style.display='none'; Codehighlighter1_550_646_Open_Text.style.display='none'; Codehighlighter1_550_646_Closed_Image.style.display='inline'; Codehighlighter1_550_646_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_550_646_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_550_646_Closed_Text.style.display='none'; Codehighlighter1_550_646_Open_Image.style.display='inline'; Codehighlighter1_550_646_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">!</span><span style="color: #000000">El._flyweights[named])</span><span id="Codehighlighter1_550_646_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 alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_550_646_Open_Text"><span style="color: #000000">{ <br /> </span><span style="color: #008080">22</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        El._flyweights[named] </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> El.Flyweight(); </span><span style="color: #008000">//</span><span style="color: #008000">浠呭湪絎竴嬈¤皟鐢‥xt.fly鏃跺垱寤轟竴涓狥lyweight瀵硅薄騫剁紦瀛?nbsp;</span><span style="color: #008000"><br /> </span><span style="color: #008080">23</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /></span><span style="color: #000000">    }</span></span><span style="color: #000000"> <br /> </span><span style="color: #008080">24</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    El._flyweights[named].dom </span><span style="color: #000000">=</span><span style="color: #000000"> el; </span><span style="color: #008000">//</span><span style="color: #008000">灝唂lyweight瀵硅薄鐨刣om灞炴ф寚鍚戣el </span><span style="color: #008000"><br /> </span><span style="color: #008080">25</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">return</span><span style="color: #000000"> El._flyweights[named]; <br /> </span><span style="color: #008080">26</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: #000000">;</span></div> <br /> 浠庝笂闈㈢殑浠g爜涓嶉毦鐪嬪嚭錛屼粎鍦ㄧ涓嬈¤皟鐢‥xt.fly鏃跺垱寤轟竴涓狥lyweight瀵硅薄錛堣瀵硅薄鍖呭惈浜咵lement鐨勬墍鏈夋搷浣滄帴鍙o級騫跺皢鍏剁紦瀛橈紝</pre> <p>涔嬪悗鐨勬墍鏈塮ly鎿嶄綔閮藉彧鏄慨鏀硅flyweight瀵硅薄鐨刣om灞炴э紝姣忔fly榪斿洖鐨勭粨鏋滈兘鏄叡浜殑鍚屼竴涓猣lyweight瀵硅薄銆?br /> 榪欐牱姣忔fly榪斿洖鐨凟lement鐩告瘮Ext.get鑰岃█錛屽噺灝戜簡姣忔鍒涘緩Element鏃跺澶ч噺鐨勬搷浣滄帴鍙g殑鍒涘緩銆傛墍鏈塮ly鐨勫璞?br /> 閮藉叡浜竴濂桬lement鎿嶄綔鎺ュ彛錛屽唴瀛樺崰鐢ㄨ嚜鐒跺皯浜嗗緢澶氾紝鑰屼笖鎵ц閫熷害涔熷緱鍒頒簡鎻愬崌銆傚湪澶ч噺鐨勫垱寤烘搷浣滀腑鏁?br /> 鏋滀細鏇村姞鏄庢樉銆?/p> <p>鐢變簬fly鐨勬搷浣滃師鐞嗭紝鎴戜滑涓嶈兘灝唂ly鐨勮繑鍥炵粨鏋滀繚瀛樺湪鍙橀噺涓互渚塊噸鐢紝鍥犱負姣忔fly鎿嶄綔閮藉皢鍙兘鏀瑰彉璇ュ彉閲忕殑<br /> dom鎸囧悜銆傚涓嬮潰鐨勪唬鐮佸氨鏄笉姝g‘鐨勶細<br /> </p> <pre jquery1234322781687="11"> <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 alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff">var</span><span style="color: #000000"> my_id </span><span style="color: #000000">=</span><span style="color: #000000"> Ext.fly('my_id');    <br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />Ext.fly('another_id'); </span><span style="color: #008000">//</span><span style="color: #008000">姝ゆ椂my_id鐨刣om寮曠敤宸茬粡鍙樹負another_id    </span><span style="color: #008000"><br /> </span><span style="color: #008080">3</span><span style="color: #008000"><img id="Codehighlighter1_116_192_Open_Image" onclick="this.style.display='none'; Codehighlighter1_116_192_Open_Text.style.display='none'; Codehighlighter1_116_192_Closed_Image.style.display='inline'; Codehighlighter1_116_192_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_116_192_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_116_192_Closed_Text.style.display='none'; Codehighlighter1_116_192_Open_Image.style.display='inline'; Codehighlighter1_116_192_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #000000">my_id.highlight('FF0000',</span><span id="Codehighlighter1_116_192_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 alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_116_192_Open_Text"><span style="color: #000000">{ </span><span style="color: #008000">//</span><span style="color: #008000">姝ゅ鐨勬搷浣滃皢鏄  another_id鍏冪礌鐨勬搷浣?nbsp;      </span><span style="color: #008000"><br /> </span><span style="color: #008080">4</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    endColor:'0000FF', duration: </span><span style="color: #000000">3</span><span style="color: #000000">    <br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: #000000">);</span></div> </pre> <p>鍦ㄤ互鍚庝嬌鐢ㄤ腑錛屼竴瀹氳鍚堢悊鐨勫埄鐢‥xt.get鍜孍xt.fly錛岄伩鍏嶆互鐢‥xt.get榪欎釜“閲嶉噺綰?#8221;鐨勬柟娉曘?br /> <br /> 杞嚜錛歨ttp://www.ajaxbbs.net/post/extjs/Ext-fly-and-Ext-get.html</p><img src ="http://www.tkk7.com/redhatlinux/aggbug/254220.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/redhatlinux/" target="_blank">Hibernating</a> 2009-02-11 11:51 <a href="http://www.tkk7.com/redhatlinux/archive/2009/02/11/254220.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ExtJs2.x寮鍙戠幆澧?-Eclipse銆丄dobe Dreamweaver瀹夎鍜岄厤緗瓻xtJs2.x寮鍙戞彃浠?/title><link>http://www.tkk7.com/redhatlinux/archive/2008/10/27/236809.html</link><dc:creator>Hibernating</dc:creator><author>Hibernating</author><pubDate>Mon, 27 Oct 2008 03:08:00 GMT</pubDate><guid>http://www.tkk7.com/redhatlinux/archive/2008/10/27/236809.html</guid><wfw:comment>http://www.tkk7.com/redhatlinux/comments/236809.html</wfw:comment><comments>http://www.tkk7.com/redhatlinux/archive/2008/10/27/236809.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.tkk7.com/redhatlinux/comments/commentRss/236809.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/redhatlinux/services/trackbacks/236809.html</trackback:ping><description><![CDATA[     鎽樿: Spket鏄洰鍓嶆敮鎸丒xt 2.0鏈涓哄嚭鑹茬殑IDE銆?瀹冮噰鐢?jsb project file 鏂囦歡騫跺皢緇ф壙浜庡熀綾誨拰鎵鏈夋枃妗g殑鍐呭宓屽叆鍒扮敓鎴愪唬鐮佹彁紺虹殑Script doc涓傝櫧鐒舵湁姣旇緝濂界敤鐨勫紑鍙戞彃浠訛紝浣嗘槸鎴戜釜浜哄緩璁拰鎴戜竴鏍風殑鍒濆鑰呰繕鏄簲璇ラ噰鐢ㄦ墜鍐欎唬鐮佺殑鏂瑰紡鍘誨涔燛xtJs錛岃繖鏍蜂究浜庢洿濂界殑鎺屾彙鍜岀悊瑙xtJs銆傛瘯绔熷伐鍏瘋繕鏄負浜嗛」鐩殑蹇熷紑鍙戣岃璁$殑錛屽涔犲氨搴旇涓姝ヤ竴涓剼鍗般?nbsp; <a href='http://www.tkk7.com/redhatlinux/archive/2008/10/27/236809.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/redhatlinux/aggbug/236809.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/redhatlinux/" target="_blank">Hibernating</a> 2008-10-27 11:08 <a href="http://www.tkk7.com/redhatlinux/archive/2008/10/27/236809.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愪釜浜烘敹钘忋戝嚑涓敤ExtJs鏋勫緩鐨勫簲鐢ㄦ紨紺?鏇存柊涓?...)http://www.tkk7.com/redhatlinux/archive/2008/10/24/236384.htmlHibernatingHibernatingFri, 24 Oct 2008 05:20:00 GMThttp://www.tkk7.com/redhatlinux/archive/2008/10/24/236384.htmlhttp://www.tkk7.com/redhatlinux/comments/236384.htmlhttp://www.tkk7.com/redhatlinux/archive/2008/10/24/236384.html#Feedback2http://www.tkk7.com/redhatlinux/comments/commentRss/236384.htmlhttp://www.tkk7.com/redhatlinux/services/trackbacks/236384.html闃呰鍏ㄦ枃

Hibernating 2008-10-24 13:20 鍙戣〃璇勮
]]>
銆愪釜浜烘敹钘忋慐xtJs2.2瑙嗛鏁欑▼鍦ㄧ嚎瑙傜湅鍙婁笅杞?/title><link>http://www.tkk7.com/redhatlinux/archive/2008/10/24/236354.html</link><dc:creator>Hibernating</dc:creator><author>Hibernating</author><pubDate>Fri, 24 Oct 2008 03:19:00 GMT</pubDate><guid>http://www.tkk7.com/redhatlinux/archive/2008/10/24/236354.html</guid><wfw:comment>http://www.tkk7.com/redhatlinux/comments/236354.html</wfw:comment><comments>http://www.tkk7.com/redhatlinux/archive/2008/10/24/236354.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/redhatlinux/comments/commentRss/236354.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/redhatlinux/services/trackbacks/236354.html</trackback:ping><description><![CDATA[     鎽樿: ExtJs2.2瑙嗛鏁欑▼鍦ㄧ嚎瑙傜湅鍙婁笅杞斤紝鐢盌OJO涓浗 | 紼嬪簭鍛樿仈鐩熶翰鎯呮墦閫狅紝姝e湪瀛︿範涓?鎰熻寰堜笉閿欙紝璁插緱闈炲父緇嗭紝涔熻鎴戝ExtJs鏈変簡鏂扮殑璁よ瘑錛屾劅璋OJOCHINA,鎰熻阿闄堟不鏂囪佸笀  <a href='http://www.tkk7.com/redhatlinux/archive/2008/10/24/236354.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/redhatlinux/aggbug/236354.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/redhatlinux/" target="_blank">Hibernating</a> 2008-10-24 11:19 <a href="http://www.tkk7.com/redhatlinux/archive/2008/10/24/236354.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://szq18888.com" target="_blank">日韩成人免费aa在线看</a>| <a href="http://600c28.com" target="_blank">免费毛片在线视频</a>| <a href="http://h47h.com" target="_blank">一级一黄在线观看视频免费</a>| <a href="http://cnepu.com" target="_blank">亚洲美女视频免费</a>| <a href="http://abbobo.com" target="_blank">久久精品国产精品亚洲艾</a>| <a href="http://lanchenews.com" target="_blank">亚洲网站在线播放</a>| <a href="http://kppp4.com" target="_blank">亚洲av日韩av无码</a>| <a href="http://wumase.com" target="_blank">久久青草国产免费观看</a>| <a href="http://maopiandao163.com" target="_blank">亚洲视频在线观看网站</a>| <a href="http://1111xxxx.com" target="_blank">久久精品视频亚洲</a>| <a href="http://baoyutv777.com" target="_blank">少妇中文字幕乱码亚洲影视</a>| <a href="http://hbwhgd.com" target="_blank">日韩视频在线精品视频免费观看 </a>| <a href="http://www52a.com" target="_blank">xxxxx做受大片在线观看免费 </a>| <a href="http://www9k832.com" target="_blank">亚洲老妈激情一区二区三区</a>| <a href="http://sxhnyl.com" target="_blank">久久永久免费人妻精品</a>| <a href="http://manghuo365.com" target="_blank">精品视频一区二区三区免费</a>| <a href="http://17soco.com" target="_blank">最近中文字幕大全中文字幕免费</a>| <a href="http://9xav.com" target="_blank">日韩亚洲人成网站</a>| <a href="http://xiaojiejieav.com" target="_blank">亚洲AV一区二区三区四区</a>| <a href="http://3333kkkk.com" target="_blank">在线观看肉片AV网站免费</a>| <a href="http://65123456.com" target="_blank">和日本免费不卡在线v</a>| <a href="http://359777b.com" target="_blank">亚洲XX00视频</a>| <a href="http://rj150.com" target="_blank">亚洲国产主播精品极品网红</a>| <a href="http://166sb.com" target="_blank">综合自拍亚洲综合图不卡区</a>| <a href="http://1ygogo.com" target="_blank">免费国产在线精品一区</a>| <a href="http://tj-zhongfa.com" target="_blank">亚洲AV日韩AV永久无码免下载</a>| <a href="http://www-175345.com" target="_blank">国产亚洲色婷婷久久99精品</a>| <a href="http://chenglide.com" target="_blank">欧美亚洲国产SUV</a>| <a href="http://yg1617.com" target="_blank">h视频在线观看免费完整版</a>| <a href="http://aqd1987.com" target="_blank">亚洲一区二区高清</a>| <a href="http://lfpfjc.com" target="_blank">亚洲videos</a>| <a href="http://wwwby1378.com" target="_blank">亚洲最大的视频网站</a>| <a href="http://9156892.com" target="_blank">亚洲精品第一国产综合精品</a>| <a href="http://0149545.com" target="_blank">亚洲av日韩精品久久久久久a</a>| <a href="http://1314c.com" target="_blank">可以免费观看的国产视频</a>| <a href="http://ivy-fund.com" target="_blank">成年人在线免费观看</a>| <a href="http://shaonvfushi.com" target="_blank">亚洲精品无码不卡在线播放HE</a>| <a href="http://jipiao020.com" target="_blank">最新国产成人亚洲精品影院</a>| <a href="http://djyvp32.com" target="_blank">在线播放免费人成毛片乱码 </a>| <a href="http://wwwbu610.com" target="_blank">最新亚洲卡一卡二卡三新区</a>| <a href="http://zfjhw.com" 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>