锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无码专区在线观看成人,亚洲AV无码国产精品色午友在线 ,亚洲综合激情另类专区http://m.tkk7.com/pitey/archive/2009/02/11/254198.htmlPiteyPiteyWed, 11 Feb 2009 01:52:00 GMThttp://m.tkk7.com/pitey/archive/2009/02/11/254198.htmlhttp://m.tkk7.com/pitey/comments/254198.htmlhttp://m.tkk7.com/pitey/archive/2009/02/11/254198.html#Feedback0http://m.tkk7.com/pitey/comments/commentRss/254198.htmlhttp://m.tkk7.com/pitey/services/trackbacks/254198.html姹熷崡鐧借。 
  
    涓鐩村笇鏈涢偅浜汮瀛楀ご鐨勫崗璁兘鏈夊嚑涓彁鍓嶅憡鑰佽繕涔$殑錛屽ソ鍑忚交涓涓嬫垜浠殑璐熸媴錛岀壒鍒槸榪橶ebService婊″ぉ椋炵殑鏃朵唬銆備絾浼間箮榪樻湁寰堜箙閮借疆涓嶅埌JMS鐨勬秷澶憋細

    1.鍥犱負
    1.瀹冩槸銆奅ffective Enterprise Java銆嬬殑涓涓疄璺點?#160;
    鍙互鎶婁笉褰卞搷鐢ㄦ埛鎵ц緇撴灉鍙堟瘮杈冭楁椂鐨勪換鍔★紙姣斿鍙戦偖浠墮氱煡綆$悊鍛橈級寮傛鐨勬墧緇橨MS 鏈嶅姟绔幓鍋氾紝鑰屽敖蹇殑鎶婂睆騫曡繑榪樼粰鐢ㄦ埛銆?br />     鑰屼笖鏈嶅姟绔兘澶熷綰跨▼鎺掗槦鍝嶅簲--楂樺茍鍙戠殑璇鋒眰銆?br />
    2. 鍙互鍦↗ava涓栫晫閲岃揪鍒版渶楂樼殑瑙h︺?br />        瀵規瘮WebService錛孞MS鐨勫鎴風涓庢湇鍔$鏃犻渶鐩磋繛錛岀敋鑷蟲棤闇鐭ユ檽瀵規柟鏄皝銆佸湪鍝噷銆佹湁澶氬皯浜猴紝鍙瀵規祦榪囩殑淇℃伅浣滃搷搴斿氨琛屼簡銆傚鐗典竴鍙戝姩鍏ㄨ韓鐨勪紒涓氬簲鐢ㄦ潵璇村緢杞葷渷銆?br />        
     2. 浣嗘槸
     1. Message Bean甯︾潃EJB緋葷殑鑽e厜錛屾楠ゆ瘮杈冪箒鏉傦紝浣犻渶瑕佸疄鐜癕essageDrivenBean銆丮essageListener鎺ュ彛錛岃繕闇瑕佽緗瓻JB鐨勯厤緗俊鎭紝鐒跺悗鏄痙eploy....

     2. Spring 1.x 鎻愪緵鐨凧MS Template綆鍖栦簡JMS Client绔殑緙栫▼錛屼絾騫舵病鏈夋秹鍙婂埌鏈嶅姟绔殑鏀歸犮?br />
     3. 鎵浠ワ紝SpringSide鐨凪essage Driven POJO鏂規

      Spring JMS Template + ActiveMQ + Jencks

1. 瀹冩槸Lightweight鐨勶紝鍩烘湰涓婂彧鏄櫘閫歅OJO錛屼笉鐢ㄦ悶澶涓滆タ銆?/p>

2. 瀹冩槸Spring Base鐨勶紝鍙互浣跨敤Spring鐨勫悇縐嶇壒鎬уIOC銆丄OP銆?/p>

3. 瀹冩槸Effective鐨勶紝鍩轟簬Jencks鐨凧CA Container瀹炵幇 pool connection錛宑ontrol transactions and manage security銆?/p>

4. 浣嗗畠鏄痺ithdout EJB Container鐨勩?br />
鍏跺疄瀹冭繕涓嶆槸100% POJO錛岄櫎闈炲啀鐢ㄤ笂Lingo錛屼絾鎴戝凡涓嶆兂璧板緱澶繙銆?br />
4.榛勯噾鐗堥厤緗?br />       濡傛灉浣犳兂鎵句竴涓狝ctiveMQ 3.2 Stable鐗?Spring鐨?00%鍙鐨勯厤緗枃浠訛紝浼拌鍙兘鍒?a target="_blank">SpringSide欏圭洰閲岀湅浜嗐傜綉涓婄殑鏂囩珷錛屼笉鏄凡榪囨椂錛屽氨鏄笉鍒囬銆?br />
     鎺ㄨ崘涓嫳涓や喚鏈鎺ヨ繎鐨勬枃妗o細
     鎹風壒鎱堟湅(IDEA涓浗): Spring鍜孧essage Bean鐨勬暣鍚?/a>
    
Spring loaded:  Message-Driven POJOs 

     涓嶈繃瀹冧滑閮芥湁涓猳utdate鐨勫湴鏂?-ActiveMQ3.2寮濮嬩笉鍐嶈嚜甯CA Cotainer浜嗭紝鑰屾槸灝嗗叾涓嶨ernimo 鍚堜綔鑰屾垚浜咼encks錛岄渶鍙﹀瀹夎銆?br />
 5.SpringSide鏃呮父鎸囧崡

      pom.xml閲岀殑JMS閮ㄥ垎 --鎵闇鐨勪緷璧栧寘銆?br />       applicationContext-jms.xml --榛勯噾鐗堥厤緗枃浠躲?br />       activemq.xml  --AcitveMQ Broker閰嶇疆鏂囦歡銆?br />       OrderPlaceMDP.java --Message Driven Pojo銆?br />       JmsTest.java --鍗曞厓嫻嬭瘯鐢ㄤ緥銆?br />       OrderManger.java鐨凬odifyOrder()鍑芥暟 --瀹為檯搴旂敤鐨勫湴鏂廣?#160;

銆POJO澶畝鍗曪紝鍞竴楹葷儲鐨勯厤緗枃浠跺凡娉ㄩ噴錛岃繖閲屼篃灝辨棤璇濅簡銆?/p>

Pitey 2009-02-11 09:52 鍙戣〃璇勮
]]>
[瀵煎叆]涓嬈ava鍨冨溇鏀墮泦璋冧紭瀹炴垬http://m.tkk7.com/pitey/archive/2009/02/11/254176.htmlPiteyPiteyWed, 11 Feb 2009 01:17:00 GMThttp://m.tkk7.com/pitey/archive/2009/02/11/254176.htmlhttp://m.tkk7.com/pitey/comments/254176.htmlhttp://m.tkk7.com/pitey/archive/2009/02/11/254176.html#Feedback0http://m.tkk7.com/pitey/comments/commentRss/254176.htmlhttp://m.tkk7.com/pitey/services/trackbacks/254176.html闃呰鍏ㄦ枃

姹熷崡鐧借。 2008-07-09 10:13 鍙戣〃璇勮

鏂囩珷鏉ユ簮:http://m.tkk7.com/calvin/archive/2008/07/09/213535.html

Pitey 2009-02-11 09:17 鍙戣〃璇勮
]]>
Spring浜嬬墿鎷︽埅鍣ㄥ涔犵瑪璁?/title><link>http://m.tkk7.com/pitey/archive/2009/02/10/254143.html</link><dc:creator>Pitey</dc:creator><author>Pitey</author><pubDate>Tue, 10 Feb 2009 15:07:00 GMT</pubDate><guid>http://m.tkk7.com/pitey/archive/2009/02/10/254143.html</guid><wfw:comment>http://m.tkk7.com/pitey/comments/254143.html</wfw:comment><comments>http://m.tkk7.com/pitey/archive/2009/02/10/254143.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/pitey/comments/commentRss/254143.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/pitey/services/trackbacks/254143.html</trackback:ping><description><![CDATA[<p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt">Spring浜嬬墿鎷︽埅鍣紝鎸夌収閫氱煡鏂瑰紡鍒嗕負[鍓嶇疆閫氱煡錛圔efore advice錛?榪斿洖鍚庨氱煡錛圓fter returning advice錛?br /> ,鎶涘嚭鍚庨氱煡錛圓fter throwing advice錛?鍚庨氱煡錛圓fter (finally) advice錛?鐜粫閫氱煡錛圓round Advice錛塢<br /> 閰嶇疆鏂瑰紡鍒咢AspectJ,XML錛岀綉涓婃瘮杈冨鐨勬槸Spring1.1鎴杧ml+@AspectJ鏂瑰紡閰嶇疆錛屼緥瀛愪嬌鐢╔ML鏂瑰紡閰嶇疆</span></span></span></span></p> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt">1.瀹氫箟鍒囬潰綾繪帴鍙o紝鍒囬潰綾誨疄鐜拌繖涓帴鍙c傚0鏄庯紙濡傛灉琚唬鐞嗙殑鐩爣瀵硅薄瀹炵幇浜嗚嚦灝戜竴涓帴鍙o紝鍒欎細浣跨敤JDK鍔ㄦ佷唬鐞嗐傛墍鏈夎鐩爣綾誨瀷瀹炵幇鐨勬帴鍙i兘灝嗚浠g悊銆傝嫢璇ョ洰鏍囧璞℃病鏈夊疄鐜頒換浣曟帴鍙o紝鍒欏垱寤轟竴涓狢GLIB浠g悊錛?br /> </span></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img id="Codehighlighter1_29_94_Open_Image" onclick="this.style.display='none'; Codehighlighter1_29_94_Open_Text.style.display='none'; Codehighlighter1_29_94_Closed_Image.style.display='inline'; Codehighlighter1_29_94_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_29_94_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_29_94_Closed_Text.style.display='none'; Codehighlighter1_29_94_Open_Image.style.display='inline'; Codehighlighter1_29_94_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">interface</span><span style="color: #000000"> ITestAdvice </span><span id="Codehighlighter1_29_94_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_29_94_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> doPlay();<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> doStop(Object reval);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_136_295_Open_Image" onclick="this.style.display='none'; Codehighlighter1_136_295_Open_Text.style.display='none'; Codehighlighter1_136_295_Closed_Image.style.display='inline'; Codehighlighter1_136_295_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_136_295_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_136_295_Closed_Text.style.display='none'; Codehighlighter1_136_295_Open_Image.style.display='inline'; Codehighlighter1_136_295_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Tv </span><span style="color: #0000ff">implements</span><span style="color: #000000"> ITestAdvice</span><span id="Codehighlighter1_136_295_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_136_295_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img id="Codehighlighter1_176_230_Open_Image" onclick="this.style.display='none'; Codehighlighter1_176_230_Open_Text.style.display='none'; Codehighlighter1_176_230_Closed_Image.style.display='inline'; Codehighlighter1_176_230_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_176_230_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_176_230_Closed_Text.style.display='none'; Codehighlighter1_176_230_Open_Image.style.display='inline'; Codehighlighter1_176_230_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> doStop(Object reval) </span><span id="Codehighlighter1_176_230_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_176_230_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  System.out.println(reval.toString() </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 /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" /> }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img id="Codehighlighter1_256_291_Open_Image" onclick="this.style.display='none'; Codehighlighter1_256_291_Open_Text.style.display='none'; Codehighlighter1_256_291_Closed_Image.style.display='inline'; Codehighlighter1_256_291_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_256_291_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_256_291_Closed_Text.style.display='none'; Codehighlighter1_256_291_Open_Image.style.display='inline'; Codehighlighter1_256_291_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> doPlay() </span><span id="Codehighlighter1_256_291_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_256_291_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">鎵撳紑鐢佃鏈?</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" /> }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt"> </span></span></span></span></p> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt">2.瀹氫箟鍓嶇疆閫氱煡鎷︽埅澶勭悊綾?/span></span></span></span></p> <p> </p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img id="Codehighlighter1_37_119_Open_Image" onclick="this.style.display='none'; Codehighlighter1_37_119_Open_Text.style.display='none'; Codehighlighter1_37_119_Closed_Image.style.display='inline'; Codehighlighter1_37_119_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_37_119_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_37_119_Closed_Text.style.display='none'; Codehighlighter1_37_119_Open_Image.style.display='inline'; Codehighlighter1_37_119_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> TestMethodBeforeAdvice  </span><span id="Codehighlighter1_37_119_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_37_119_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img id="Codehighlighter1_76_115_Open_Image" onclick="this.style.display='none'; Codehighlighter1_76_115_Open_Text.style.display='none'; Codehighlighter1_76_115_Closed_Image.style.display='inline'; Codehighlighter1_76_115_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_76_115_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_76_115_Closed_Text.style.display='none'; Codehighlighter1_76_115_Open_Image.style.display='inline'; Codehighlighter1_76_115_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> before(JoinPoint jpt) </span><span id="Codehighlighter1_76_115_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_76_115_Open_Text"><span style="color: #000000">{  //鍙傛暟JoinPoint涓洪粯璁ゅ弬鏁?br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">姝e湪鎵撳紑鐢佃..</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" /> }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> <br /> <span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt">3.瀹氫箟鎷︽埅鍣ㄩ厤緗枃浠?/span></span></span></span></p> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">bean id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">tv</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">com.pitey.demo.Tv</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">bean id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">beforeAdvice</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">com.pitey.demo.TestMethodBeforeAdvice</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> </span><span style="color: #000000"><</span><span style="color: #000000">aop:aspectj</span><span style="color: #000000">-</span><span style="color: #000000">autoproxy proxy</span><span style="color: #000000">-</span><span style="color: #000000">target</span><span style="color: #000000">-</span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">true</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> </span><span style="color: #000000"><</span><span style="color: #000000">aop:config</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><!--</span><span style="color: #000000"> 瀹氫箟鍒囧叆鐐?#160;</span><span style="color: #000000">--></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><</span><span style="color: #000000">aop:pointcut id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">methodAdvice</span><span style="color: #000000">"</span><span style="color: #000000"> expression</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">execution(* com.pitey.demo.*.*(..))</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><!--</span><span style="color: #000000"> 瀹氫箟鍒囬潰 </span><span style="color: #000000">--></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><</span><span style="color: #000000">aop:aspect id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">beforeAdviceAspect</span><span style="color: #000000">"</span><span style="color: #000000"> ref</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">beforeAdvice</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #000000"><!--</span><span style="color: #000000"> 瀹氫箟鍓嶇疆閫氱煡 </span><span style="color: #000000">--></span><span style="color: #000000">   <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #000000"><</span><span style="color: #000000">aop:before method</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">before</span><span style="color: #000000">"</span><span style="color: #000000"> pointcut</span><span style="color: #000000">-</span><span style="color: #000000">ref</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">methodAdvice</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000">    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> </span><span style="color: #000000"></</span><span style="color: #000000">aop:config</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> 4.嫻嬭瘯涓涓嬪墠緗氱煡<br /> <span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img id="Codehighlighter1_39_214_Open_Image" onclick="this.style.display='none'; Codehighlighter1_39_214_Open_Text.style.display='none'; Codehighlighter1_39_214_Closed_Image.style.display='inline'; Codehighlighter1_39_214_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_39_214_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_39_214_Closed_Text.style.display='none'; Codehighlighter1_39_214_Open_Image.style.display='inline'; Codehighlighter1_39_214_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String[] args) </span><span id="Codehighlighter1_39_214_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_39_214_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        ApplicationContext context </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> ClassPathXmlApplicationContext(</span><span style="color: #000000">"</span><span style="color: #000000">config\\advice.xml</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        Tv tv </span><span style="color: #000000">=</span><span style="color: #000000"> (Tv)context.getBean(</span><span style="color: #000000">"</span><span style="color: #000000">tv</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        tv.doPlay();        <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />緇撴灉:<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            姝e湪鎵撳紑鐢佃鏈?img src="http://m.tkk7.com/Images/dot.gif" alt="" />..<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            鎵撳紑鐢佃鏈?br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> 5.瀹氫箟榪斿洖鍚庨氱煡鎷︽埅澶勭悊綾?/p> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img id="Codehighlighter1_35_200_Open_Image" onclick="this.style.display='none'; Codehighlighter1_35_200_Open_Text.style.display='none'; Codehighlighter1_35_200_Closed_Image.style.display='inline'; Codehighlighter1_35_200_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_35_200_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_35_200_Closed_Text.style.display='none'; Codehighlighter1_35_200_Open_Image.style.display='inline'; Codehighlighter1_35_200_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> TestAfterReturnAdvice </span><span id="Codehighlighter1_35_200_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_35_200_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img id="Codehighlighter1_99_196_Open_Image" onclick="this.style.display='none'; Codehighlighter1_99_196_Open_Text.style.display='none'; Codehighlighter1_99_196_Closed_Image.style.display='inline'; Codehighlighter1_99_196_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_99_196_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_99_196_Closed_Text.style.display='none'; Codehighlighter1_99_196_Open_Image.style.display='inline'; Codehighlighter1_99_196_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> afterReturning(Object retVal) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> Throwable </span><span id="Codehighlighter1_99_196_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_99_196_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  String returnVal </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 /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">  System.out.println(returnVal);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  retVal</span><span style="color: #000000">=</span><span style="color: #000000"> (Object)returnVal;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" /> }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> 6.瀹氫箟鎷︽埅鍣ㄩ厤緗枃浠?/p> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt"> </span></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">bean id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">afterReturnAdvice</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">com.pitey.demo.TestAfterReturnAdvice</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> </span><span style="color: #000000"><</span><span style="color: #000000">aop:config</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><!--</span><span style="color: #000000"> 瀹氫箟鍒囬潰 </span><span style="color: #000000">--></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><</span><span style="color: #000000">aop:aspect id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">afterReturnAdviceAspect</span><span style="color: #000000">"</span><span style="color: #000000"> ref</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">afterReturnAdvice</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #000000"><!--</span><span style="color: #000000"> 瀹氫箟鍚庣疆榪斿洖閫氱煡  </span><span style="color: #000000">--></span><span style="color: #000000">   <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #000000"><</span><span style="color: #000000">aop:after</span><span style="color: #000000">-</span><span style="color: #000000">returning method</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">afterReturning</span><span style="color: #000000">"</span><span style="color: #000000"> pointcut</span><span style="color: #000000">-</span><span style="color: #000000">ref</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">methodAdvice</span><span style="color: #000000">"</span><span style="color: #000000"> returning</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">retVal</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"> </span><span style="color: #008000">//</span><span style="color: #008000">returing 涓鴻繑鍥炲弬鏁?/span><span style="color: #008000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"> </span><span style="color: #000000"></</span><span style="color: #000000">aop:config</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> 7.嫻嬭瘯涓涓嬭繑鍥炲悗閫氱煡<br /> <span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt"><br /> </span></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img id="Codehighlighter1_39_214_Open_Image" onclick="this.style.display='none'; Codehighlighter1_39_214_Open_Text.style.display='none'; Codehighlighter1_39_214_Closed_Image.style.display='inline'; Codehighlighter1_39_214_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_39_214_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_39_214_Closed_Text.style.display='none'; Codehighlighter1_39_214_Open_Image.style.display='inline'; Codehighlighter1_39_214_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String[] args) </span><span id="Codehighlighter1_39_214_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_39_214_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        ApplicationContext context </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> ClassPathXmlApplicationContext(</span><span style="color: #000000">"</span><span style="color: #000000">config\\advice.xml</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        Tv tv </span><span style="color: #000000">=</span><span style="color: #000000"> (Tv)context.getBean(</span><span style="color: #000000">"</span><span style="color: #000000">tv</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        tv.doPlay();        <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />緇撴灉:<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            姝e湪鎵撳紑鐢佃鏈?img src="http://m.tkk7.com/Images/dot.gif" alt="" />..<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            鎵撳紑鐢佃鏈?br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            鐢佃鏈哄凡緇忔墦寮</span><span style="color: #000000">!</span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> 8.瀹氫箟鐜粫閫氱煡鎷︽埅澶勭悊綾伙紙鐜粫閫氱煡鍦ㄤ竴涓柟娉曟墽琛屼箣鍓嶅拰涔嬪悗鎵ц銆?瀹冧嬌寰楅氱煡鏈夋満浼氭棦鍦ㄤ竴涓柟娉曟墽琛屼箣鍓嶅張鍦ㄦ墽琛屼箣鍚庤繍琛屻傚茍涓旓紝瀹冨彲浠ュ喅瀹氳繖涓柟娉曞湪浠涔堟椂鍊欐墽琛岋紝濡備綍鎵ц錛岀敋鑷蟲槸鍚︽墽琛屻?鐜粫閫氱煡緇忓父鍦ㄥ湪鏌愮嚎紼嬪畨鍏ㄧ殑鐜涓嬶紝浣犻渶瑕佸湪涓涓柟娉曟墽琛屼箣鍓嶅拰涔嬪悗鍏變韓鏌愮鐘舵佺殑鏃跺欎嬌鐢ㄣ?璇峰敖閲忎嬌鐢ㄦ渶綆鍗曠殑婊¤凍浣犻渶姹傜殑閫氱煡銆傦紙姣斿濡傛灉鍓嶇疆閫氱煡錛坆efore advice錛変篃鍙互閫傜敤鐨勬儏鍐典笅涓嶈浣跨敤鐜粫閫氱煡錛夛級<br /> 閫氱煡鏂規硶鐨勭涓涓弬鏁扮殑綾誨瀷蹇呴』鏄?<code class="interfacename">ProceedingJoinPoint</code> 綾誨瀷銆傚湪閫氱煡鐨勪富浣撲腑錛岃皟鐢?<code class="interfacename">ProceedingJoinPoint</code>鐨?code class="literal">proceed()</code> 鏂規硶鏉ユ墽琛岀湡姝g殑鏂規硶銆?<code class="literal">proceed</code> 鏂規硶涔熷彲鑳戒細琚皟鐢ㄥ茍涓斾紶鍏ヤ竴涓?<code class="classname">Object[]</code> 瀵硅薄 - 璇ユ暟緇勫皢浣滀負鏂規硶鎵ц鏃跺欑殑鍙傛暟銆?/p> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img id="Codehighlighter1_33_245_Open_Image" onclick="this.style.display='none'; Codehighlighter1_33_245_Open_Text.style.display='none'; Codehighlighter1_33_245_Closed_Image.style.display='inline'; Codehighlighter1_33_245_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_33_245_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_33_245_Closed_Text.style.display='none'; Codehighlighter1_33_245_Open_Image.style.display='inline'; Codehighlighter1_33_245_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> TestMethodIntercepor</span><span id="Codehighlighter1_33_245_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_33_245_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img id="Codehighlighter1_112_242_Open_Image" onclick="this.style.display='none'; Codehighlighter1_112_242_Open_Text.style.display='none'; Codehighlighter1_112_242_Closed_Image.style.display='inline'; Codehighlighter1_112_242_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_112_242_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_112_242_Closed_Text.style.display='none'; Codehighlighter1_112_242_Open_Image.style.display='inline'; Codehighlighter1_112_242_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /> </span><span style="color: #0000ff">public</span><span style="color: #000000"> Object doBasicProfiling(ProceedingJoinPoint  pjp) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> Throwable </span><span id="Codehighlighter1_112_242_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_112_242_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">begining<img src="http://m.tkk7.com/Images/dot.gif" alt="" /><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  Object obj </span><span style="color: #000000">=</span><span style="color: #000000"> pjp.proceed();<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">ending<img src="http://m.tkk7.com/Images/dot.gif" alt="" /><img src="http://m.tkk7.com/Images/dot.gif" alt="" />..</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />  </span><span style="color: #0000ff">return</span><span style="color: #000000"> obj;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" /> }</span></span><span style="color: #000000"> <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> <br /> 9.瀹氫箟鎷︽埅鍣ㄩ厤緗枃浠?/p> <p><span style="font-size: 10pt"><span style="font-family: 瀹嬩綋"><span style="font-size: 12pt"><span style="font-size: 10pt"> </span></span></span></span></p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">bean id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">aroundAdvice</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">com.pitey.demo.TestMethodIntercepor</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> </span><span style="color: #000000"><</span><span style="color: #000000">aop:config</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><!--</span><span style="color: #000000"> 瀹氫箟鍒囬潰 </span><span style="color: #000000">--></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><</span><span style="color: #000000">aop:aspect id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">aroundAspect</span><span style="color: #000000">"</span><span style="color: #000000"> ref</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">aroundAdvice</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> </span><span style="color: #000000"><</span><span style="color: #000000">aop:around method</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">doBasicProfiling</span><span style="color: #000000">"</span><span style="color: #000000"> pointcut</span><span style="color: #000000">-</span><span style="color: #000000">ref</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">methodBeforeAdvice</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"></</span><span style="color: #000000">aop:aspect</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /> </span><span style="color: #000000"></</span><span style="color: #000000">aop:config</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> <br /> 10.嫻嬭瘯涓涓嬬幆緇曢氱煡<br /> </p> <div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left-color: #cccccc; width: 98%; word-break: break-all; padding-top: 4px; background-color: #eeeeee; "><img id="Codehighlighter1_39_214_Open_Image" onclick="this.style.display='none'; Codehighlighter1_39_214_Open_Text.style.display='none'; Codehighlighter1_39_214_Closed_Image.style.display='inline'; Codehighlighter1_39_214_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_39_214_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_39_214_Closed_Text.style.display='none'; Codehighlighter1_39_214_Open_Image.style.display='inline'; Codehighlighter1_39_214_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String[] args) </span><span id="Codehighlighter1_39_214_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://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_39_214_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        ApplicationContext context </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> ClassPathXmlApplicationContext(</span><span style="color: #000000">"</span><span style="color: #000000">config\\advice.xml</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        Tv tv </span><span style="color: #000000">=</span><span style="color: #000000"> (Tv)context.getBean(</span><span style="color: #000000">"</span><span style="color: #000000">tv</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        tv.doPlay();        <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />緇撴灉:<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            begining<img src="http://m.tkk7.com/Images/dot.gif" alt="" /><img src="http://m.tkk7.com/Images/dot.gif" alt="" /><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            鎵撳紑鐢佃鏈?br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            ending<img src="http://m.tkk7.com/Images/dot.gif" alt="" /><img src="http://m.tkk7.com/Images/dot.gif" alt="" />..<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://m.tkk7.com/pitey/aggbug/254143.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/pitey/" target="_blank">Pitey</a> 2009-02-10 23:07 <a href="http://m.tkk7.com/pitey/archive/2009/02/10/254143.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>杞?閲嶅啓window.setTimeout浼犲弬鏁?鏀寔浼犲璞?鐨勬柟娉?/title><link>http://m.tkk7.com/pitey/archive/2008/03/18/186930.html</link><dc:creator>Pitey</dc:creator><author>Pitey</author><pubDate>Tue, 18 Mar 2008 02:21:00 GMT</pubDate><guid>http://m.tkk7.com/pitey/archive/2008/03/18/186930.html</guid><wfw:comment>http://m.tkk7.com/pitey/comments/186930.html</wfw:comment><comments>http://m.tkk7.com/pitey/archive/2008/03/18/186930.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/pitey/comments/commentRss/186930.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/pitey/services/trackbacks/186930.html</trackback:ping><description><![CDATA[<p><font face="Tahoma">涔熻浣犺繃鍘誨湪setTimeout涓紶鍙傛暟涓鐩存槸榪欐牱</font></p> <p><font face="Tahoma">setTimeout("pass(" + argu + ")",1000)</font></p> <p><font face="Tahoma">榪欐牱鍙兘浼犲瓧絎︿覆,瀵逛紶閫抩bject灝辨棤鑳戒負鍔涗簡,闇瑕佸ぇ璐規枃绔?鐒惰屽埆蹇樹簡,絎竴涓弬鏁拌繕鍙互鏄痜unction!!!</font></p> <p><font face="Tahoma">鐪嬩互涓嬩唬鐮佸疄鐜板悜閲岄潰鐨刦unction 浼犲弬鏁?/font></p> <div style="border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; background-color: #eeeeee; font-size: 13px; width: 98%; "><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;"><</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;">><br /> </span><span style="color: #000000;">var _st </span><span style="color: #000000;">=</span><span style="color: #000000;"> window.setTimeout;window.setTimeout </span><span style="color: #000000;">=</span><span style="color: #000000;"> function(fRef, mDelay) {<br /> </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(typeof fRef </span><span style="color: #000000;">==</span><span style="color: #000000;"> </span><span style="color: #000000;">'</span><span style="color: #000000;">function</span><span style="color: #000000;">'</span><span style="color: #000000;">){  <br />   var argu </span><span style="color: #000000;">=</span><span style="color: #000000;"> Array.prototype.slice.call(arguments,</span><span style="color: #000000;">2</span><span style="color: #000000;">);  <br />   var f </span><span style="color: #000000;">=</span><span style="color: #000000;"> (function(){ fRef.apply(</span><span style="color: #0000ff;">null</span><span style="color: #000000;">, argu); });  <br /> </span><span style="color: #0000ff;">  return</span><span style="color: #000000;"> _st(f, mDelay); } </span><span style="color: #0000ff;"><br />   return</span><span style="color: #000000;"> _st(fRef,mDelay);}<br /> <br /> function test(x){ alert(x);}<br /> window.setTimeout(test,</span><span style="color: #000000;">1000</span><span style="color: #000000;">,</span><span style="color: #000000;">'</span><span style="color: #000000;">fason</span><span style="color: #000000;">'</span><span style="color: #000000;">);</span><span style="color: #000000;"><br /> </</span><span style="color: #000000;">script</span><span style="color: #000000;">></span><span style="color: #000000;"><br /> </span></div> <font face="Tahoma"> <p><font face="Tahoma">鎬庢牱?鏄笉鏄緢鏂逛究浜?浠g爜鍏跺疄灝卞緢綆鍗?閲嶈澆浜嗕竴涓媤indow.setTimeout,鐢╝pply鍘誨洖璋冨墠闈㈢殑function.</font></p> </font> <p><font face="Tahoma">榪樻病鏈夌敤榪嘺pply,call鐨勫彲浠ュ幓鏌ヨ祫鏂?鍙戠幇鐗堟湰涓嶅鐨勭湅鎴戜綆鐗堟湰鐨勫疄鐜版柟娉?a target="_blank"><font color="#006400">http://blog.csdn.net/fason/archive/2004/07/30/apply_call.aspx</font></a></font></p> <p><font face="Tahoma">鍙﹀闇瑕佺煡閬撶殑鏄?NS鐜涓?鍚庨潰鐨勫弬鏁扮‘瀹炴槸鏉ヤ紶緇欏墠闈㈢殑鍑芥暟鐨?IE鐑?娌℃湁瀹炵幇~~~~~~~~~~~~~</font></p> <img src ="http://m.tkk7.com/pitey/aggbug/186930.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/pitey/" target="_blank">Pitey</a> 2008-03-18 10:21 <a href="http://m.tkk7.com/pitey/archive/2008/03/18/186930.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>杞琩ocument.execCommand()鐢ㄦ硶璇存槑http://m.tkk7.com/pitey/archive/2008/03/17/186862.htmlPiteyPiteyMon, 17 Mar 2008 13:18:00 GMThttp://m.tkk7.com/pitey/archive/2008/03/17/186862.htmlhttp://m.tkk7.com/pitey/comments/186862.htmlhttp://m.tkk7.com/pitey/archive/2008/03/17/186862.html#Feedback0http://m.tkk7.com/pitey/comments/commentRss/186862.htmlhttp://m.tkk7.com/pitey/services/trackbacks/186862.htmldocument.execCommand()鐢ㄦ硶璇存槑

2D
-Position 鍏佽閫氳繃鎷栨洺縐誨姩緇濆瀹氫綅鐨勫璞°?br /> AbsolutePosition 璁懼畾鍏冪礌鐨?#160;position 灞炴т負“absolute”(緇濆)銆?br /> BackColor 璁劇疆鎴栬幏鍙栧綋鍓嶉変腑鍖虹殑鑳屾櫙棰滆壊銆?br /> BlockDirLTR 鐩墠灝氭湭鏀寔銆?br /> BlockDirRTL 鐩墠灝氭湭鏀寔銆?br /> Bold 鍒囨崲褰撳墠閫変腑鍖虹殑綺椾綋鏄劇ず涓庡惁銆?br /> BrowseMode 鐩墠灝氭湭鏀寔銆?br /> Copy 灝嗗綋鍓嶉変腑鍖哄鍒跺埌鍓創鏉褲?br /> CreateBookmark 鍒涘緩涓涓功絳鵑敋鎴栬幏鍙栧綋鍓嶉変腑鍖烘垨鎻掑叆鐐圭殑涔︾閿氱殑鍚嶇О銆?br /> CreateLink 鍦ㄥ綋鍓嶉変腑鍖轟笂鎻掑叆瓚呯駭閾炬帴錛屾垨鏄劇ず涓涓璇濇鍏佽鐢ㄦ埛鎸囧畾瑕佷負褰撳墠閫変腑鍖烘彃鍏ョ殑瓚呯駭閾炬帴鐨?#160;URL銆?br /> Cut 灝嗗綋鍓嶉変腑鍖哄鍒跺埌鍓創鏉垮茍鍒犻櫎涔嬨?br /> Delete 鍒犻櫎褰撳墠閫変腑鍖恒?br /> DirLTR 鐩墠灝氭湭鏀寔銆?br /> DirRTL 鐩墠灝氭湭鏀寔銆?br /> EditMode 鐩墠灝氭湭鏀寔銆?br /> FontName 璁劇疆鎴栬幏鍙栧綋鍓嶉変腑鍖虹殑瀛椾綋銆?br /> FontSize 璁劇疆鎴栬幏鍙栧綋鍓嶉変腑鍖虹殑瀛椾綋澶у皬銆?br /> ForeColor 璁劇疆鎴栬幏鍙栧綋鍓嶉変腑鍖虹殑鍓嶆櫙(鏂囨湰)棰滆壊銆?br /> FormatBlock 璁劇疆褰撳墠鍧楁牸寮忓寲鏍囩銆?br /> Indent 澧炲姞閫変腑鏂囨湰鐨勭緝榪涖?br /> InlineDirLTR 鐩墠灝氭湭鏀寔銆?br /> InlineDirRTL 鐩墠灝氭湭鏀寔銆?br /> InsertButton 鐢ㄦ寜閽帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertFieldset 鐢ㄦ柟妗嗚鐩栧綋鍓嶉変腑鍖恒?br /> InsertHorizontalRule 鐢ㄦ按騫崇嚎瑕嗙洊褰撳墠閫変腑鍖恒?br /> InsertIFrame 鐢ㄥ唴宓屾鏋惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertImage 鐢ㄥ浘鍍忚鐩栧綋鍓嶉変腑鍖恒?br /> InsertInputButton 鐢ㄦ寜閽帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertInputCheckbox 鐢ㄥ閫夋鎺т歡瑕嗙洊褰撳墠閫変腑鍖恒?br /> InsertInputFileUpload 鐢ㄦ枃浠朵笂杞芥帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertInputHidden 鎻掑叆闅愯棌鎺т歡瑕嗙洊褰撳墠閫変腑鍖恒?br /> InsertInputImage 鐢ㄥ浘鍍忔帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertInputPassword 鐢ㄥ瘑鐮佹帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertInputRadio 鐢ㄥ崟閫夐挳鎺т歡瑕嗙洊褰撳墠閫変腑鍖恒?br /> InsertInputReset 鐢ㄩ噸緗帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertInputSubmit 鐢ㄦ彁浜ゆ帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertInputText 鐢ㄦ枃鏈帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertMarquee 鐢ㄧ┖瀛楀箷瑕嗙洊褰撳墠閫変腑鍖恒?br /> InsertOrderedList 鍒囨崲褰撳墠閫変腑鍖烘槸緙栧彿鍒楄〃榪樻槸甯歌鏍煎紡鍖栧潡銆?br /> InsertParagraph 鐢ㄦ崲琛岃鐩栧綋鍓嶉変腑鍖恒?br /> InsertSelectDropdown 鐢ㄤ笅鎷夋鎺т歡瑕嗙洊褰撳墠閫変腑鍖恒?br /> InsertSelectListbox 鐢ㄥ垪琛ㄦ鎺т歡瑕嗙洊褰撳墠閫変腑鍖恒?br /> InsertTextArea 鐢ㄥ琛屾枃鏈緭鍏ユ帶浠惰鐩栧綋鍓嶉変腑鍖恒?br /> InsertUnorderedList 鍒囨崲褰撳墠閫変腑鍖烘槸欏圭洰絎﹀彿鍒楄〃榪樻槸甯歌鏍煎紡鍖栧潡銆?br /> Italic 鍒囨崲褰撳墠閫変腑鍖烘枩浣撴樉紺轟笌鍚︺?br /> JustifyCenter 灝嗗綋鍓嶉変腑鍖哄湪鎵鍦ㄦ牸寮忓寲鍧楃疆涓?br /> JustifyFull 鐩墠灝氭湭鏀寔銆?br /> JustifyLeft 灝嗗綋鍓嶉変腑鍖烘墍鍦ㄦ牸寮忓寲鍧楀乏瀵歸綈銆?br /> JustifyNone 鐩墠灝氭湭鏀寔銆?br /> JustifyRight 灝嗗綋鍓嶉変腑鍖烘墍鍦ㄦ牸寮忓寲鍧楀彸瀵歸綈銆?br /> LiveResize 榪嬌 MSHTML 緙栬緫鍣ㄥ湪緙╂斁鎴栫Щ鍔ㄨ繃紼嬩腑鎸佺畫鏇存柊鍏冪礌澶栬錛岃屼笉鏄彧鍦ㄧЩ鍔ㄦ垨緙╂斁瀹屾垚鍚庢洿鏂般?br /> MultipleSelection 鍏佽褰撶敤鎴鋒寜浣?#160;Shift 鎴?#160;Ctrl 閿椂涓嬈¢変腑澶氫簬涓涓珯鐐瑰彲閫夊厓绱犮?br /> Open 鎵撳紑銆?br /> Outdent 鍑忓皯閫変腑鍖烘墍鍦ㄦ牸寮忓寲鍧楃殑緙╄繘銆?br /> OverWrite 鍒囨崲鏂囨湰鐘舵佺殑鎻掑叆鍜岃鐩栥?br /> Paste 鐢ㄥ壀璐存澘鍐呭瑕嗙洊褰撳墠閫変腑鍖恒?br /> PlayImage 鐩墠灝氭湭鏀寔銆?br /> Print 鎵撳紑鎵撳嵃瀵硅瘽妗嗕互渚跨敤鎴峰彲浠ユ墦鍗板綋鍓嶉〉銆?br /> Redo 閲嶅仛銆?br /> Refresh 鍒鋒柊褰撳墠鏂囨。銆?br /> RemoveFormat 浠庡綋鍓嶉変腑鍖轟腑鍒犻櫎鏍煎紡鍖栨爣絳俱?br /> RemoveParaFormat 鐩墠灝氭湭鏀寔銆?br /> SaveAs 灝嗗綋鍓?#160;Web 欏甸潰淇濆瓨涓烘枃浠躲?br /> SelectAll 閫変腑鏁翠釜鏂囨。銆?br /> SizeToControl 鐩墠灝氭湭鏀寔銆?br /> SizeToControlHeight 鐩墠灝氭湭鏀寔銆?br /> SizeToControlWidth 鐩墠灝氭湭鏀寔銆?br /> Stop 鍋滄銆?br /> StopImage 鐩墠灝氭湭鏀寔銆?br /> StrikeThrough 鐩墠灝氭湭鏀寔銆?br /> Subscript 鐩墠灝氭湭鏀寔銆?br /> Superscript 鐩墠灝氭湭鏀寔銆?br /> UnBookmark 浠庡綋鍓嶉変腑鍖轟腑鍒犻櫎鍏ㄩ儴涔︾銆?br /> Underline 鍒囨崲褰撳墠閫変腑鍖虹殑涓嬪垝綰挎樉紺轟笌鍚︺?br /> Undo 鎾ゆ秷銆?br /> Unlink 浠庡綋鍓嶉変腑鍖轟腑鍒犻櫎鍏ㄩ儴瓚呯駭閾炬帴銆?br /> Unselect 娓呴櫎褰撳墠閫変腑鍖虹殑閫変腑鐘舵併?br />
<HTML>

        
<HEAD>

            
<TITLE>JavaScript--execCommand鎸囦護闆?/span></TITLE>

            
<SCRIPT LANGUAGE="javascript">

<!--

/*

*璇unction鎵цcopy鎸囦護

*/

function fn_doufucopy(){

edit.select();

document.execCommand(
'Copy');

}

/*

*璇unction鎵цpaste鎸囦護

*/

function fn_doufupaste() {

tt.focus();

document.execCommand(
'paste');

}

/*

*璇unction鐢ㄦ潵鍒涘緩涓涓秴閾炬帴

*/

function fn_creatlink()

{

     document.execCommand(
'CreateLink',true,'true');//寮瑰嚭涓涓璇濇杈撳叆URL

     
//document.execCommand('CreateLink',false,'http://www.51js.com');

}

/*

*璇unction鐢ㄦ潵灝嗛変腑鐨勫尯鍧楄涓烘寚瀹氱殑鑳屾櫙鑹?br />
*/

function fn_change_backcolor()

{

     document.execCommand(
'BackColor',true,'#FFbbDD');//true鎴杅alse閮藉彲浠?/span>

}

/*

*璇unction鐢ㄦ潵灝嗛変腑鐨勫尯鍧楄涓烘寚瀹氱殑鍓嶆櫙鑹?鏀瑰彉閫変腑鍖哄潡鐨勫瓧浣撳ぇ灝?鏀瑰彉瀛椾綋,瀛椾綋鍙樼矖鍙樻枩

*/

function fn_change_forecolor()

{

//鎸囧畾鍓嶆櫙鑹?/span>

document.execCommand(
'ForeColor',false,'#BBDDCC');//true鎴杅alse閮藉彲浠?br />
//鎸囧畾鑳屾櫙鑹?/span>

document.execCommand(
'FontSize',false,7);      //true鎴杅alse閮藉彲浠?br />
//瀛椾綋蹇呴』鏄郴緇熸敮鎸佺殑瀛椾綋

document.execCommand(
'FontName',false,'鏍囨シ浣?/span>');      //true鎴杅alse閮藉彲浠?br />
//瀛椾綋鍙樼矖

document.execCommand(
'Bold');

//鍙樻枩浣?/span>

document.execCommand(
'Italic');

}

/*

*璇unction鐢ㄦ潵灝嗛変腑鐨勫尯鍧楀姞涓婁笉鍚岀殑綰挎潯

*/

function fn_change_selection()

{

//灝嗛変腑鐨勬枃瀛楀姞涓嬪垝綰?/span>

document.execCommand(
'Underline');

//鍦ㄩ変腑鐨勬枃瀛椾笂鍒掔矖綰?/span>

document.execCommand(
'StrikeThrough');

//灝嗛変腑鐨勯儴鍒嗘枃瀛楀彉緇?/span>

document.execCommand(
'SuperScript');

//灝嗛変腑鍖哄潡鐨勪笅鍒掔嚎鍙栨秷鎺?/span>

document.execCommand(
'Underline');

}

/*

     *璇unction鐢ㄦ潵灝嗛変腑鐨勫尯鍧楁帓鎴愪笉鍚岀殑鏍煎紡

     
*/

function fn_format()

{

//鏈夊簭鍒楁帓鍒?/span>

document.execCommand(
'InsertOrderedList');

//瀹炲績鏃犲簭鍒楁帓鍒?/span>

document.execCommand(
'InsertUnorderedList');

//絀哄績鏃犲簭鍒楁帓鍒?/span>

document.execCommand(
'Indent');

}

/*

*璇unction鐢ㄦ潵灝嗛変腑鐨勫尯鍧楀壀涓嬫垨鏄垹闄ゆ帀

*/

function fn_CutOrDel()

{

//鍒犻櫎閫変腑鐨勫尯鍧?br />
//document.execCommand('Delete');

//鍓笅閫変腑鐨勫尯鍧?/span>

document.execCommand(
'Cut');

}

/*

*璇unction鐢ㄦ潵灝嗛変腑鐨勫尯鍧楅噸璁句負涓涓浉搴旂殑鐗╀歡

*/

function fn_InsObj()

{

/*

     ******************************************

     * 浠ヤ笅鎸囦護閮芥槸涓洪変腑鐨勫尯鍧楅噸璁句竴涓猳bject;

     * 濡傛病鏈夌壒孌婅鏄?絎簩涓弬鏁皌rue鎴杅alse鏄竴鏍風殑;

     * 鍙傛暟涓夎〃紺轟負璇bject鐨刬d;

     * 鍙互鐢ㄥ湪javascript涓氳繃鍏舵寚瀹氱殑id鏉ユ帶鍒跺畠

     ******************************************

*/

/*閲嶈涓轟竴涓猙utton(InsertButton鍜孖nsertInputButtong涓鏍?

鍙笉鍓嶈呮槸button,鍚庤呮槸input)
*/

/*document.execCommand('InsertButton',false,"aa"); //true鎴杅alse鏃犳晥

document.all.aa.value="椋庤垶涔濆ぉ";
*/

//閲嶈涓轟竴涓猣ieldset

/*document.execCommand('InsertFieldSet',true,"aa");

document.all.aa.innerText="鍒鍓戝姊?;
*/

//鎻掑叆涓涓按騫崇嚎

//document.execCommand('InsertHorizontalRule',true,"aa");

//鎻掑叆涓涓猧frame

//document.execCommand('InsertIFrame',true,"aa");

//鎻掑叆涓涓狪nsertImage,璁句負true鏃墮渶瑕佸浘鐗?false鏃朵笉闇鍥劇墖

//document.execCommand('InsertImage',false,"aa");

//鎻掑叆涓涓猚heckbox

//document.execCommand('InsertInputCheckbox',true,"aa");

//鎻掑叆涓涓猣ile綾誨瀷鐨刼bject

//document.execCommand('InsertInputFileUpload',false,"aa");

//鎻掑叆涓涓猦idden

/*document.execCommand('InsertInputHidden',false,"aa");

alert(document.all.aa.id);
*/

//鎻掑叆涓涓狪nputImage

/*document.execCommand('InsertInputImage',false,"aa");

document.all.aa.src="F-a10.gif";
*/

//鎻掑叆涓涓狿assword

//document.execCommand('InsertInputPassword',true,"aa");

//鎻掑叆涓涓猂adio

//document.execCommand('InsertInputRadio',false,"aa");

//鎻掑叆涓涓猂eset

//document.execCommand('InsertInputReset',true,"aa");

//鎻掑叆涓涓猄ubmit

//document.execCommand('InsertInputSubmit',false,"aa");

//鎻掑叆涓涓猧nput text

//document.execCommand('InsertInputText',false,"aa");

//鎻掑叆涓涓猼extarea

//document.execCommand('InsertTextArea',true,"aa");

//鎻掑叆涓涓?#160;select list box

//document.execCommand('InsertSelectListbox',false,"aa");

//鎻掑叆涓涓猻ingle select

document.execCommand(
'InsertSelectDropdown',true,"aa");

//鎻掑叆涓涓猯ine break(紜洖杞??)

//document.execCommand('InsertParagraph');

//鎻掑叆涓涓猰arquee

/*document.execCommand('InsertMarquee',true,"aa");

document.all.aa.innerText="bbbbb";
*/

//鐢ㄤ簬鍙栨秷閫変腑鐨勯槾褰遍儴鍒?br />
//document.execCommand('Unselect');

//閫変腑欏甸潰涓婄殑鎵鏈夊厓绱?br />
//document.execCommand('SelectAll');

}

/*

*璇unction鐢ㄦ潵灝嗛〉闈繚瀛樹負涓涓枃浠?br />
*/

function fn_save()

{

//絎簩涓弬鏁頒負嬈蹭繚瀛樼殑鏂囦歡鍚?/span>

document.execCommand(
'SaveAs','mycodes.txt');

//鎵撳嵃鏁翠釜欏甸潰

//document.execCommand('print');

}

-->

            
</SCRIPT>

        
</HEAD>

        
<body>

            
<input id="edit" value="鑼冧緥" NAME="edit"><br>

            
<button onclick="fn_doufucopy()" ID="Button1">Copy</button> <button onclick="fn_doufupaste()" ID="Button2">

                 paste
</button><br>

            
<textarea id="tt" rows="10" cols="50" NAME="tt"></textarea>

            
<hr>

            
<br>

            嫻矇鑱氭暎鍙樺寲鍙堝啀,浣嗘槸鎬誨彲鍗峰湡閲嶆潵.
<br>

            澶╄嫢鏈夋儏澶╀害鑰?浜洪棿姝i亾鏄缽妗?
<br>

            閮芥垜,澶墽鐫,鍗翠篃絳変笉鍒拌姳寮鍙惰惤.
<br>

            
<br>

            Please select above letters, then click following buttons:
<br>

            
<hr>

            
<input type="button" value="鍒涘緩CreateLink" onclick="fn_creatlink()" ID="Button3" NAME="Button3"><br>

            
<input type="button" value="鏀瑰彉鏂囧瓧鑳屾櫙鑹?/span>" onclick="fn_change_backcolor()" ID="Button4" NAME="Button4"><br>

            
<input type="button" value="鏀瑰彉鏂囧瓧鍓嶆櫙鑹?/span>" onclick="fn_change_forecolor()" ID="Button5" NAME="Button5"><br>

            
<input type="button" value="緇欐枃瀛楀姞綰挎潯" onclick="fn_change_selection()" ID="Button6" NAME="Button6"><br>

            
<input type="button" value="鏀瑰彉鏂囧瓧鐨勬帓鍒?/span>" onclick="fn_format()" ID="Button7" NAME="Button7"><br>

            
<input type="button" value="鍒犻櫎鎴栧壀涓嬮変腑鐨勯儴鍒?/span>" onclick="fn_CutOrDel()" ID="Button8" NAME="Button8"><br>

            
<input type="button" value="鎻掑叆Object" onclick="fn_InsObj()" ID="Button9" NAME="Button9"><br>

            
<input type="button" value="淇濆瓨鎴栨墦鍗版枃浠?/span>" onclick="fn_save()" ID="Button10" NAME="Button10"><br>

            
<input type="button" value="嫻嬭瘯Refresh灞炴?/span>" onclick="document.execCommand('Refresh')" ID="Button11"

                 NAME
="Button11">

        
</body>

</HTML>

鏅氱殑鏂瑰紡鏄縺媧諱竴涓?/span><iframe>榪涘叆緙栬緫鐘舵侊紝鍛戒護濡備笅

IframeNamer.document.designMode
="On"

瀛椾綋
--瀹嬩綋銆侀粦浣撱佹シ浣撶瓑

execCommand(
"fontname","",瀛椾綋)

瀛楀彿
--瀛楀彿澶у皬

execCommand(
"fontsize","",瀛楀彿)

鍔犻噸

execCommand(
"Bold")

鏂滀綋

execCommand(
"Italic")

涓嬪垝綰?br />
execCommand(
"Underline")

鍒犻櫎綰?br />
execCommand(
"StrikeThrough")

涓婃爣

execCommand(
"SuperScript")

涓嬫爣

execCommand(
"SubScript")

鏈夊簭鎺掑垪
--鏁板瓧搴忓彿

execCommand(
"InsertOrderedList")

鏃犲簭鎺掑垪
--鍦嗙偣搴忓彿

execCommand(
"InsertUnorderedList")

鍚戝墠緙╄繘

execCommand(
"Outdent")

鍚戝悗緙╄繘

execCommand(
"Indent")

灞呭乏

execCommand(
"JustifyLeft")

灞呭彸

execCommand(
"JustifyRight")

灞呬腑

execCommand(
"JustifyCenter")

鍓垏

execCommand(
"Cut")

鎷瘋礉

execCommand(
"Copy")

綺樿創

execCommand(
"Paste")

瑕嗙洊

execCommand(
"Overwrite")

鍙栨秷鎿嶄綔
--IE5.0浠ュ悗鍙互鏃犻檺鍙栨秷

execCommand(
"Undo")

閲嶅鎿嶄綔

execCommand(
"Redo")

璁劇疆閾炬帴
--鑻ユ寜浠ヤ笅鍐欐硶錛屽湪IE5.0鐗堟湰涓細嬋媧諱竴涓唴寤虹獥鍙o紝鍙互瀹屾垚杈撳叆閾炬帴鐨勫姛鑳斤紝鑰屼笖榪樺彲浠ラ夋嫨MAILTO銆丗TP絳夊悇縐嶉摼鎺ョ被鍨嬶紝姣旇緝鏂逛究

execCommand(
"CreateLink")

鍦↖E4.0涓紝娌℃湁鍐呭緩閾炬帴杈撳叆紿楀彛錛屾墍浠ュ氨闇瑕佺敤浠ヤ笅鏂瑰紡宓屽叆閾炬帴

execCommand(
"CreateLink","",TURL)

鎻掑叆鍥劇墖
--鐢變簬IE涓祵鍏ョ殑鍙紪鎺т歡鏄拡瀵規湰鍦拌祫婧愮殑錛屾墍浠ュ叾榛樿鐨勫浘鐗囪祫婧愭潵鑷湰鍦幫紝鎵浠ュ熀浜嶹EB鍐呭鐨勭紪杈戞渶濂借嚜宸卞仛杈撳叆妗嗭紝鐒跺悗鐢ㄥ涓嬪懡浠ゅ疄鐜般?br />
execCommand(
"InsertImage","",ImgURL)

瀛椾綋棰滆壊

execCommand(
"ForeColor","",CColor)


Pitey 2008-03-17 21:18 鍙戣〃璇勮
]]>
鑾峰彇 Iframe鍐呯殑鍏冪礌瀵硅薄http://m.tkk7.com/pitey/archive/2008/03/09/184830.htmlPiteyPiteySun, 09 Mar 2008 05:48:00 GMThttp://m.tkk7.com/pitey/archive/2008/03/09/184830.htmlhttp://m.tkk7.com/pitey/comments/184830.htmlhttp://m.tkk7.com/pitey/archive/2008/03/09/184830.html#Feedback2http://m.tkk7.com/pitey/comments/commentRss/184830.htmlhttp://m.tkk7.com/pitey/services/trackbacks/184830.html  鑾峰緱ifream鐨勫璞★紝騫舵妸ifreame涓〉闈?lt;div id="my">闅愯棌鎺?br />
test1.html

<html>
<head>
<script>
function t(){
var dd = document.all('test2').contentWindow.document;
dd.getElementById('my').style.display='none';

}
</script>
</head>
<body >
<input type="button" value="test" onClick="t();"/>
<iframe id="test2" name="test2" src="test2.html"></iframe>
</body>
</html>

test2.html
<html>
<head>
</head>
<body>
    
    
<div id="my" name="my">
       嫻嬭瘯涓涓嬶紝鐖剁獥浣撳彲浠ユ妸鎴戦殣钘忔帀!!!!!!!!
  
</div>
</body>
</html>





Pitey 2008-03-09 13:48 鍙戣〃璇勮
]]>
Spring 鑾峰彇Connectionhttp://m.tkk7.com/pitey/archive/2008/03/05/183932.htmlPiteyPiteyWed, 05 Mar 2008 04:45:00 GMThttp://m.tkk7.com/pitey/archive/2008/03/05/183932.htmlhttp://m.tkk7.com/pitey/comments/183932.htmlhttp://m.tkk7.com/pitey/archive/2008/03/05/183932.html#Feedback1http://m.tkk7.com/pitey/comments/commentRss/183932.htmlhttp://m.tkk7.com/pitey/services/trackbacks/183932.htmlapplicationContext.xml閲岄潰璁劇疆

<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="default" autowire="default" dependency-check="default">
        <property name="jndiName">
            <value>JDBC/TEST</value>           
        </property>
</bean> 鎴栬?br />
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>
        <property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:ora"></property>
        <property name="username" value="test"></property>
        <property name="password" value="123456"></property>
    </bean>


閫氳繃
DataSourceUtils.getConnection(DataSource錛?灝辮兘鑾峰彇鍒拌緗殑DataSource 鐒跺悗鑾峰緱connection

public static Connection getConnection()
            
throws SQLException
    {        
        
return DataSourceUtils.getConnection((DataSource)ServiceLocator.getBean("dataSource"));
}



Pitey 2008-03-05 12:45 鍙戣〃璇勮
]]>
妯″紡紿椾綋鍏抽棴鍚庤皟鐢ㄧ埗綾葷獥浣撶殑鏂規硶http://m.tkk7.com/pitey/archive/2007/05/07/115728.htmlPiteyPiteyMon, 07 May 2007 09:04:00 GMThttp://m.tkk7.com/pitey/archive/2007/05/07/115728.htmlhttp://m.tkk7.com/pitey/comments/115728.htmlhttp://m.tkk7.com/pitey/archive/2007/05/07/115728.html#Feedback0http://m.tkk7.com/pitey/comments/commentRss/115728.htmlhttp://m.tkk7.com/pitey/services/trackbacks/115728.html 璋冪敤妯″紡紿椾綋window.showModalDialog('/test.html',window)   璁板緱絎簩涓弬鏁頒竴瀹氳鎶婄埗綾葷獥浣撳綋鍙傛暟浼犲埌妯″紡紿椾綋銆?br />
妯″紡紿椾綋鍔犲叆浜嬩歡
<script for="window" event="onunload">
    dialogArguments.window.test();  
</script>
榪欐牱灝卞彲浠ュ湪妯″紡紿椾綋鍏抽棴鎴栬呮槸閲嶈澆鐨勬椂鍊欒皟鐢ㄧ埗綾葷獥浣撶殑鏂規硶錛屽鏋滀笉鎯寵閲嶈澆鐨勬椂鍊欒皟鐢ㄧ埗紿椾綋鐨則est()鏂規硶錛屽彲浠ョ粰鐖剁獥浣撲紶涓涓彉閲忥紝鍒版椂鍊欐牴鎹彉閲忕殑鍊兼潵鍒ゆ柇鏄笉鏄鎵цtest()鏂規硶銆?br />




Pitey 2007-05-07 17:04 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲精品高清久久| 国产av无码专区亚洲av果冻传媒| 亚洲国产成人久久精品动漫| ssswww日本免费网站片| 免费人成激情视频| 国产亚洲精品美女| 日本人护士免费xxxx视频| 亚洲av无码一区二区三区四区| 欧美在线看片A免费观看| 久久精品国产99国产精品亚洲| 三年片在线观看免费大全| 亚洲精品无码你懂的| 免费萌白酱国产一区二区| 国产va免费观看| 亚洲成AV人片在线观看| 亚洲人成免费网站| 亚洲一卡2卡3卡4卡国产网站 | 日韩欧美亚洲国产精品字幕久久久 | 亚洲成a∧人片在线观看无码| 日韩a级毛片免费视频| 免费又黄又爽又猛大片午夜| 国产亚洲色婷婷久久99精品91| 最新亚洲成av人免费看| 亚洲人妖女同在线播放| 日韩免费高清视频| 中国一级特黄的片子免费 | 国产国产成年年人免费看片| 永久免费精品影视网站| 久久亚洲中文字幕精品有坂深雪| 曰批全过程免费视频在线观看| 99亚洲精品卡2卡三卡4卡2卡| 亚洲午夜福利在线观看| 国产免费毛不卡片| a级毛片免费观看在线| 亚洲精品国产福利在线观看| 热久久精品免费视频| 日本不卡免费新一区二区三区| 在线观看亚洲AV每日更新无码 | 免费人成网站7777视频| 99在线观看视频免费| 粉色视频成年免费人15次|