锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲中文字幕久久精品无码喷水 ,久久亚洲国产精品成人AV秋霞,亚洲国产成人精品无码区二本http://m.tkk7.com/Ericzhang5231/zh-cnFri, 09 May 2025 22:08:17 GMTFri, 09 May 2025 22:08:17 GMT60if/else鐨勪嬌鐢ㄥ績(jī)寰?/title><link>http://m.tkk7.com/Ericzhang5231/articles/299443.html</link><dc:creator>Eric-1001c</dc:creator><author>Eric-1001c</author><pubDate>Sat, 24 Oct 2009 02:54:00 GMT</pubDate><guid>http://m.tkk7.com/Ericzhang5231/articles/299443.html</guid><wfw:comment>http://m.tkk7.com/Ericzhang5231/comments/299443.html</wfw:comment><comments>http://m.tkk7.com/Ericzhang5231/articles/299443.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/Ericzhang5231/comments/commentRss/299443.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/Ericzhang5231/services/trackbacks/299443.html</trackback:ping><description><![CDATA[<div align="center"><img style="width: 402px; height: 189px;" alt="if_else" src="http://m.tkk7.com/images/blogjava_net/ericzhang5231/if_else.png" width="402" border="0" height="189" /><br /> </div> <br />       鏃犵枒 if/else鍑犱箮鏄墍鏈夌紪紼嬭璦鐨勪竴涓噸瑕佽娉曪紝鎴戜滑涓嶄絾鍙互鍦ㄧ畝鍗曠殑鍑芥暟閲岄潰鍙戠幇瀹冪殑瓚寵抗錛屾洿涓嶇敤璇村湪鍏鋒湁澶嶆潅閫昏緫銆佷唬鐮佽鏁扮瘡绱殑鍔熻兘閲岄潰浜?jiǎn)銆傛墍浠ュ敖綆f/else鏄竴涓畝鍗曠殑璇硶緇撴瀯錛屼絾瀹冪殑鍔熻兘寰堝己澶с?br />       if/else鐨勫己澶т嬌寰楁垜浠湪閬囧埌浠諱綍鍒嗘敮閫昏緫閲岄潰閮戒細(xì)浼樺厛鑰冭檻瀹冪殑浣跨敤錛屾墍浠ユ棤璁烘槸綆鍗曠殑錛岃繕鏄鏉傞昏緫鍔熻兘鍑芥暟閮戒細(xì)鍑虹幇if/else錛屼絾鏄繖縐?#8220;浼樺厛鑰冭檻”鏇村鐨勬椂鍊欏嵈鍙樻垚浜?jiǎn)涓縐嶆傛伩鍜岃鎯戙傜壒鍒湪澶嶆潅閫昏緫鍔熻兘鍑芥暟閲岄潰錛屼笉涔廼f/else閿欑敤銆佹互鐢ㄥ拰宓屽鐢ㄣ俰f/else閿欑敤銆佹互鐢ㄥ拰宓屽鐢ㄩ兘浼?xì)鍦ㄤ笉鍚尳E嬪害涓婂噺灝戜唬鐮佺殑鍙鎬э紝闄嶄綆浠g爜鐨勫彲緇存姢鎬э紝澧炲姞娼滃湪bug鐨勫彲鑳芥с?br />      if/else閿欑敤銆備粈涔堟槸if/else閿欑敤錛熺敱浜庝漢鐨勬濈淮蹇熸э紝浣垮緱鎴戜滑鑳藉涓涓嬪瓙瀵逛竴浜涗腑絳夊鏉傜殑閫昏緫鐞嗚В錛岃兘澶熶竴涓嬪瓙鎶婁腑絳夊鏉傜殑閫昏緫緇撴瀯嫻幇鍦ㄨ剳嫻鳳紝鍥犳鍦ㄧ紪紼嬬殑鏃跺欏氨瀹規(guī)槗榪囦簬鑷俊錛屼緷钁姦鐢葷摙錛屾兂鍒板摢鍐欏埌閭c傞氬父榪欏鏄撲嬌寰楁煇浜涗漢鍦ㄤ嬌鐢╥f/else鐨勬椂鍊欏鑷撮敊鐢紝涓嬮潰鏄竴涓猧f/else閿欑敤鐨勪緥瀛愶細(xì)<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; width: 98%; font-size: 13px;"><span style="color: #008080;"> 1</span><img id="Codehighlighter1_0_22_Open_Image" onclick="this.style.display='none'; Codehighlighter1_0_22_Open_Text.style.display='none'; Codehighlighter1_0_22_Closed_Image.style.display='inline'; Codehighlighter1_0_22_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" align="top" /><img style="display: none;" id="Codehighlighter1_0_22_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_0_22_Closed_Text.style.display='none'; Codehighlighter1_0_22_Open_Image.style.display='inline'; Codehighlighter1_0_22_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" align="top" /><span style="border: 1px solid #808080; background-color: #ffffff; display: none;" id="Codehighlighter1_0_22_Closed_Text">/**/</span><span id="Codehighlighter1_0_22_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 2</span><span style="color: #008000;"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" align="top" /> * 鍙瓨鍦ˋ銆丅鍜孋鎯呭喌鐨勯昏緫<br /> </span><span style="color: #008080;"> 3</span><span style="color: #008000;"><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" align="top" /> </span><span style="color: #008000;">*/</span></span><span style="color: #000000;"><br /> </span><span style="color: #008080;"> 4</span><span style="color: #000000;"><img id="Codehighlighter1_31_53_Open_Image" onclick="this.style.display='none'; Codehighlighter1_31_53_Open_Text.style.display='none'; Codehighlighter1_31_53_Closed_Image.style.display='inline'; Codehighlighter1_31_53_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" align="top" /><img style="display: none;" id="Codehighlighter1_31_53_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_31_53_Closed_Text.style.display='none'; Codehighlighter1_31_53_Open_Image.style.display='inline'; Codehighlighter1_31_53_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" align="top" />  </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(A)</span><span style="border: 1px solid #808080; background-color: #ffffff; display: none;" id="Codehighlighter1_31_53_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_31_53_Open_Text"><span style="color: #000000;">{<br /> </span><span style="color: #008080;"> 5</span><span style="color: #000000;"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" align="top" />    </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 6</span><span style="color: #008000;"><img id="Codehighlighter1_58_164_Open_Image" onclick="this.style.display='none'; Codehighlighter1_58_164_Open_Text.style.display='none'; Codehighlighter1_58_164_Closed_Image.style.display='inline'; Codehighlighter1_58_164_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" alt="" align="top" /><img style="display: none;" id="Codehighlighter1_58_164_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_58_164_Closed_Text.style.display='none'; Codehighlighter1_58_164_Open_Image.style.display='inline'; Codehighlighter1_58_164_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" alt="" align="top" /></span><span style="color: #000000;">  }</span></span><span style="color: #0000ff;">else</span><span style="border: 1px solid #808080; background-color: #ffffff; display: none;" id="Codehighlighter1_58_164_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_58_164_Open_Text"><span style="color: #000000;">{<br /> </span><span style="color: #008080;"> 7</span><span style="color: #000000;"><img id="Codehighlighter1_70_98_Open_Image" onclick="this.style.display='none'; Codehighlighter1_70_98_Open_Text.style.display='none'; Codehighlighter1_70_98_Closed_Image.style.display='inline'; Codehighlighter1_70_98_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" align="top" /><img style="display: none;" id="Codehighlighter1_70_98_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_70_98_Closed_Text.style.display='none'; Codehighlighter1_70_98_Open_Image.style.display='inline'; Codehighlighter1_70_98_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" align="top" />     </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(B)</span><span style="border: 1px solid #808080; background-color: #ffffff; display: none;" id="Codehighlighter1_70_98_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_70_98_Open_Text"><span style="color: #000000;">{<br /> </span><span style="color: #008080;"> 8</span><span style="color: #000000;"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" align="top" />       </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 9</span><span style="color: #008000;"><img id="Codehighlighter1_103_160_Open_Image" onclick="this.style.display='none'; Codehighlighter1_103_160_Open_Text.style.display='none'; Codehighlighter1_103_160_Closed_Image.style.display='inline'; Codehighlighter1_103_160_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" align="top" /><img style="display: none;" id="Codehighlighter1_103_160_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_103_160_Closed_Text.style.display='none'; Codehighlighter1_103_160_Open_Image.style.display='inline'; Codehighlighter1_103_160_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" align="top" /></span><span style="color: #000000;">     }</span></span><span style="color: #0000ff;">else</span><span style="border: 1px solid #808080; background-color: #ffffff; display: none;" id="Codehighlighter1_103_160_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_103_160_Open_Text"><span style="color: #000000;">{<br /> </span><span style="color: #008080;">10</span><span style="color: #000000;"><img id="Codehighlighter1_118_153_Open_Image" onclick="this.style.display='none'; Codehighlighter1_118_153_Open_Text.style.display='none'; Codehighlighter1_118_153_Closed_Image.style.display='inline'; Codehighlighter1_118_153_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" alt="" align="top" /><img style="display: none;" id="Codehighlighter1_118_153_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_118_153_Closed_Text.style.display='none'; Codehighlighter1_118_153_Open_Image.style.display='inline'; Codehighlighter1_118_153_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" alt="" align="top" />        </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(C)</span><span style="border: 1px solid #808080; background-color: #ffffff; display: none;" id="Codehighlighter1_118_153_Closed_Text"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_118_153_Open_Text"><span style="color: #000000;">{<br /> </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" align="top" />           </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething</span><span style="color: #008000;"><br /> </span><span style="color: #008080;">12</span><span style="color: #008000;"><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" align="top" /></span><span style="color: #000000;">        }</span></span><span style="color: #000000;"><br /> </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" align="top" />     }</span></span><span style="color: #000000;"><br /> </span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" align="top" />  }</span></span></div>        鍦ㄨ繖涓緥瀛愰噷闈紝鐢變簬鍙湁3涓昏緫鍙兘鎬э紝鎵浠ュ緢瀹規(guī)槗灝變細(xì)鍒嗗埆瀵?涓昏緫鍙兘鎬х殑涓涓寤虹珛鍒嗘敮銆備篃璁稿湪綆鍗曠殑銆佽鏁拌緝?yōu)畱鐨勪唬鐮侀噷闈㈠Q屼竴涓寤虹珛鍒嗘敮鐨勫仛娉曞茍鏃犲ぇ紕嶏紝浣嗗鏋滃姛鑳藉鏉傦紝琛屾暟杈冨錛屼唬鐮佽嚜鎻忚堪鎬ц緝宸殑浠g爜閲岄潰錛屼綘澶у崐浼?xì)琚珮q欓噷鐨勯昏緫鎼炴檿鐨勩傝繖灝辨槸if/else閿欑敤浜?jiǎn)锛屽叾瀹烌q朵笉闇瑕佷竴涓寤虹珛鍒嗘敮錛岃嚦灝戝湪涓婇潰鐨勪緥瀛愰噷闈紝瀵逛簬C鐨勫垽鏂槸涓嶉渶瑕佺殑銆?br />       if/else婊ョ敤銆傛互鐢ㄦ槸鎸囪繃澶氱殑浣跨敤if/else榪涜閫昏緫鎺у埗錛屽悓鏍蜂篃鏄洜涓烘濈淮鐨勫揩閫熸у拰涓嶅叿鏈夎壇濂界紪紼嬬粡楠岀殑浜哄鏄撶儲(chǔ)鐨勯敊璇備緥濡備笅闈㈢殑浠g爜錛?br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 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: #008080;"> 1</span> <span style="color: #0000ff;">if</span><span style="color: #000000;">(A</span><span style="color: #000000;">&&</span><span style="color: #000000;">B</span><span style="color: #000000;">&&</span><span style="color: #000000;">C){<br /> </span><span style="color: #008080;"> 2</span> <span style="color: #000000;">   </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 3</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(A){<br /> </span><span style="color: #008080;"> 4</span> <span style="color: #000000;">     </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 5</span> <span style="color: #000000;">   }</span><span style="color: #0000ff;">else</span><span style="color: #000000;">{<br /> </span><span style="color: #008080;"> 6</span> <span style="color: #000000;">     </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(B){<br /> </span><span style="color: #008080;"> 7</span> <span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 8</span> <span style="color: #000000;">     }</span><span style="color: #0000ff;">else</span><span style="color: #000000;">{<br /> </span><span style="color: #008080;"> 9</span> <span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;">(C){<br /> </span><span style="color: #008080;">10</span> <span style="color: #000000;">          </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething</span><span style="color: #008000;"><br /> </span><span style="color: #008080;">11</span> <span style="color: #000000;">        }<br /> </span><span style="color: #008080;">12</span> <span style="color: #000000;">     }<br /> </span><span style="color: #008080;">13</span> <span style="color: #000000;">   }</span><span style="color: #000000;"><br /> </span><span style="color: #008080;">14</span><span style="color: #000000;">}</span></div> 寰堟槑鏄句笂闈㈢殑榪欐浠g爜涓嶆槸涓涓壇濂界粨鏋勭殑浠g爜孌碉紝褰撶劧榪欓噷榪樺瓨鍦╥f/else閿欑敤鍜屽祵濂楃敤鐨勯棶棰樸備絾鏄繖灝變篃璇存槑浜?jiǎn)if/else閿欑敤鍜屽祵濂楃敤鐨勫熀鏈師鍥犳槸鎴戜滑婊ョ敤浜?jiǎn)if/else錛屽洜姝ゅ鏋滃綋鎴戜滑浣跨敤瓚呰繃3涓祵濂梚f/else涔嬪悗灝卞簲璇ユ濊冭繖孌典唬鐮佹槸鍚﹁兘澶熻繘琛岄噸鏋勩傞噸鏋勭殑鏂規(guī)硶寰堝錛屾湰鏂囧氨涓嶈繘琛屽叿浣撲粙緇嶄簡(jiǎn)錛屾湁鍏磋叮鍙互鍙傝僊artin Fowler鐨勩奟efactoring: Improving the Design of Existing Code銆嬩互鍙?qiáng)wiki瀵箁efactoring鐨?a >浠嬬粛</a>銆?br />       if/else宓屽鐢ㄣ傚祵濂楃敤寰堝ソ瑙i噴錛屼篃寰堝ソ鐞嗚В鍏跺澶勩備漢鑴戠殑鍫嗘爤瀹歸噺鏄湁闄愮殑錛屼竴鑸笉寤鴻if/else鎴栧叾浠栭昏緫緇撴瀯宓屽瓚呰繃涓夊眰浠ヤ笂錛屽惁鍒欎漢瀵瑰叾鐨勮蹇嗗氨浼?xì)澶уぇ鍑忓急锛岀涙俊璋佷篃涓嶄細(xì)鎯充笉鏂炕涔嬪墠鐨勪唬鐮佽鍘繪煡鐪嬫煇涓笢瑗垮惂銆傛垜浠湪璇磇f/else婊ョ敤鐨勪緥瀛愬氨鏄竴涓吀鍨嬬殑宓屽鐢ㄦ硶錛屽眰鏁拌揪鍒?灞備互涓娿傝繖縐嶉棶棰樺緢瀹規(guī)槗浜х敓錛屽洜涓虹▼搴忔湰鏉ュ氨鏄鎺у埗閫昏緫鐨勶紝閫昏緫瀛樺湪澶氱鍒嗘敮鍦ㄥぇ閮ㄥ垎鏃跺欐垜浠兘浼?xì)閬囦笂銆傞偅鎬庝箞閬垮厤榪欑宓屽鐢ㄥ憿錛熻鍋氬埌閬垮厤鍏跺疄鍦ㄤ竴寮濮嬫槸寰堥毦鍋氬埌鐨勶紝闄や簡(jiǎn)緇忛獙涓板瘜鐨勪漢闄ゅ銆傛墍浠ユ垜鐨勫緩璁槸錛屽厛鎶婁簨鎯呭仛瀵逛簡(jiǎn)錛堢▼搴忛昏緫瀹炵幇浜?jiǎn)锛?jí)錛岀劧鍚庤繘琛岄噸鏋勩傚浜庡ぇ鐐圭殑紼嬪簭榪涜閲嶆瀯寤鴻閬靛驚Martin鐨勮鐐癸紝鍏堝啓濂界浉鍏崇殑test銆傝岃繖閲岀殑閲嶆瀯鏂規(guī)硶涔熷彲浠ヨ鐩稿綋綆鍗曪紝鎬濊礬涓錛氫嬌鐢↗oshua Bloch鍦ㄣ奺ffective java銆嬩腑浠嬬粛鐨勬柟娉曪紝鎶婂祵濂楅噷闈㈢殑if/else涓涓鎻嚭騫舵斁鍒版墍鍦ㄥ祵濂楀眰鐨勪笂涓灞傦紝濡傛灉鎻嚭鍚庤繕鑳界戶緇湪鏂版墍鍦ㄥ眰鎻埌鏂版墍灞傜殑涓婁竴灞傚氨緇х畫鎻紝鍚屾椂瑕佹敞鎰廵lse鏄惁鑳芥秷鎺夛紱鎬濊礬浜岋細(xì)鏄惁鑳藉浣跨敤switch瀹炵幇錛?涓互涓婄殑閫昏緫鍒ゆ柇鐢╯witch鐨勮瘽鏇村鏄撹浜虹湅鎳備綘鍐欑殑涓滆タ銆傛渶鍚庤繕搴旇鏍規(guī)嵁瀹為檯鎯呭喌錛屾槸鍚﹂渶瑕佹妸閫昏緫浠g爜孌墊娊鍙栧嚭鏉ユ垚涓轟竴涓崟鐙殑鍑芥暟鎴栬呯被銆備緥濡備笂渚嬫垜浠彲浠ヨ繘琛屽涓嬮噸鏋勶細(xì)<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 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: #008080;"> 1</span> <span style="color: #008000;">/*</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 2</span> <span style="color: #008000;"> * 鎬濊礬涓錛氭彧if/else/<br /> </span><span style="color: #008080;"> 3</span> <span style="color: #008000;"> </span><span style="color: #008000;">*/</span><span style="color: #000000;"><br /> </span><span style="color: #008080;"> 4</span> <span style="color: #0000ff;">if</span><span style="color: #000000;">(A){</span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething}</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 5</span> <span style="color: #0000ff;">if</span><span style="color: #000000;">(B){</span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething}</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 6</span> <span style="color: #0000ff;">if</span><span style="color: #000000;">(C){</span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething}</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 7</span> <span style="color: #000000;"><br /> </span><span style="color: #008080;"> 8</span> <span style="color: #008000;">/*</span><span style="color: #008000;"><br /> </span><span style="color: #008080;"> 9</span> <span style="color: #008000;"> * 鎬濊礬浜岋細(xì)浣跨敤switch<br /> </span><span style="color: #008080;">10</span> <span style="color: #008000;"> </span><span style="color: #008000;">*/</span><span style="color: #000000;"><br /> </span><span style="color: #008080;">11</span> <span style="color: #0000ff;">switch</span><span style="color: #000000;">(condition){<br /> </span><span style="color: #008080;">12</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">case</span><span style="color: #000000;"> </span><span style="color: #000000;">'</span><span style="color: #000000;">A</span><span style="color: #000000;">'</span><span style="color: #000000;">: </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething;break;</span><span style="color: #008000;"><br /> </span><span style="color: #008080;">13</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">case</span><span style="color: #000000;"> </span><span style="color: #000000;">'</span><span style="color: #000000;">B</span><span style="color: #000000;">'</span><span style="color: #000000;">: </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething;break;</span><span style="color: #008000;"><br /> </span><span style="color: #008080;">14</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">case</span><span style="color: #000000;"> </span><span style="color: #000000;">'</span><span style="color: #000000;">C</span><span style="color: #000000;">'</span><span style="color: #000000;">: </span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething;break;</span><span style="color: #008000;"><br /> </span><span style="color: #008080;">15</span> <span style="color: #000000;">   </span><span style="color: #0000ff;">default</span><span style="color: #000000;">  :</span><span style="color: #008000;">//</span><span style="color: #008000;">dosomething;break;</span><span style="color: #008000;"><br /> </span><span style="color: #008080;">16</span> <span style="color: #000000;">}</span></div> <br />       if/esle铏藉皬錛岃屼笖鍔熻兘寮哄ぇ錛屼絾濡傛灉涓嶆紜嬌鐢紝涓嶄絾浼?xì)璁╀唬鐮伨l存姢鍥伴毦錛屾洿鍙曟槸鐣欎笅娼滃湪鐨刡ug銆備互涓?涓棶棰樻槸姣旇緝鏅氬嚭鐜扮殑闂錛屽彧瑕佹垜浠粏蹇?jī)鐨勮瘽锛寴q欎簺闂閮藉彲浠ラ伩鍏嶏紝淇敼鍜屽畬鍠勩?br /> <img src ="http://m.tkk7.com/Ericzhang5231/aggbug/299443.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/Ericzhang5231/" target="_blank">Eric-1001c</a> 2009-10-24 10:54 <a href="http://m.tkk7.com/Ericzhang5231/articles/299443.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎽╁皵瀹氬緥鍏跺疄鏄釜欖斿拻http://m.tkk7.com/Ericzhang5231/archive/2009/10/18/mor.htmlEric-1001cEric-1001cSun, 18 Oct 2009 02:52:00 GMThttp://m.tkk7.com/Ericzhang5231/archive/2009/10/18/mor.htmlhttp://m.tkk7.com/Ericzhang5231/comments/298732.htmlhttp://m.tkk7.com/Ericzhang5231/archive/2009/10/18/mor.html#Feedback0http://m.tkk7.com/Ericzhang5231/comments/commentRss/298732.htmlhttp://m.tkk7.com/Ericzhang5231/services/trackbacks/298732.html     


    鎽╁皵瀹氬緥鏄敱intel鐨勬垐鐧繪懇灝?dāng)鎻愬嚭鐨勪竴涓鐐癸紝鍏蜂綋鍚箟鍙互鏌ョ湅涓?a style="font-family: " target="_blank">鎽╁皵瀹氬緥銆傛懇灝?dāng)瀹氬緥鎸囧嚭IC鍒朵綔鎶鏈互鐩寸嚎鐨勬柟寮忓悜鍓嶆帹榪涳紝鏅亶嫻佽鐨勮娉曞氨鏄?姣?8涓湀鐣竴鐣?錛屾懇灝?dāng)瀹氬緥鐢氳噷櫩樿鎺q胯嚦鏁翠釜IT琛屼笟銆傜湅鏉ヤ技涔庝竴鍒囬兘鏄偅涔堢鍚堟懇灝?dāng)瀹氬緥锛屼絾鍚屾椂杩欎竴鍒囪鏄庢妸鎽╁皵瀹氬緥鐨?#8220;閭伓”錛屾懇灝?dāng)瀹氬?#8220;璇呭拻”浜?jiǎn)杩欎竴鍒囥傘婃氮娼箣宸呫嬬殑浣滆呭惔鍐涙彁鍑?a style="font-family: " target="_blank">“鍙嶆懇灝?dāng)瀹氬?#8221;鎻ず浜?jiǎn)鎽當(dāng)瀹氬緥鐨勫疄璐ㄣ傚弽鎽╁皵瀹氬緥浠庢懇灝?dāng)瀹氬緥鐨勫弽鏂瑰悜杩涜鎬濊冿紝綆鍗曠殑璇村鏋滀竴涓紒涓氭病鏈夐伒寰懇灝?dāng)瀹氬緥锛屼粖澶╁拰杩囧?8涓湀涓鏍峰崠鎺夊悓鏍峰銆佸悓鏍風(fēng)殑浜у搧錛岄偅瀹冪殑钀ヤ笟棰濆氨鍙湁涓鍗娿傝繖璇存槑浜?jiǎn)浠涔堬紵榪欏氨鎰忓懗鐫鍦ㄤ笉閬靛驚鎽╁皵瀹氬緥涓嬶紝榪欎釜浼佷笟90%閮戒細(xì)鍊掗棴錛侀偅涔堜綘璇磋繖涓槸涓嶆槸涓涓瓟鍜掑摝錛燂紒鎴堢櫥鑳屽悗鎵浠h〃鐨勬槸intel絳夊ぇ鍏徃錛屽畠浠叿鏈夊厛榪涚殑鎶鏈拰闆勫帤鐨勮儲(chǔ)鍔涳紝瀹屽叏鏈夎兘鍔涘仛鍒版懇灝?dāng)瀹氬緥閭f狓P紝浣嗗叾浠栦腑灝忓叕鍙歌兘鍚楋紵鏄劇劧鏄笉鑳界殑錛佺粨鏋滄槸澶у叕鍙歌秺鍙戝崰棰嗗競(jìng)鍦猴紝涓皬鍏徃鍒欒榪涜鍙︿竴杞窐姹板拰鍚為銆?nbsp;

    紜疄錛屾垜浠笉鑳藉惁瀹氭懇灝?dāng)瀹氬緥缁欎竴鑸皯浼楀甫鏉ョ殑濂藉錛氫釜浜虹數(shù)鑴戙佺數(shù)鑴戦厤浠朵互鍙?qiáng)鏁扮爜漶斿搧瓒婃潵渚垮疁銆備絾闀胯繙鏉ョ湅錛屾懇灝?dāng)瀹氬緥鋴慑緱浠ュ悗涓瓰畯鍏徃绾肪U峰掗棴錛屽競(jìng)鍦哄彧瀛樺湪灝戞暟鐨勮秴綰уぇ鍏徃錛岄偅甯?jìng)鍦轰笂鐨勭數(shù)鑴戜骇鍝佷讳h牸鎺у埗鏉冧笉鏄畠浠浜?jiǎn)绠楀Q熼偅鎴戜滑鏄笉鏄氨鍙樻垚浜?jiǎn)鐮ф澘鐨勯逼D倝錛屼換浜哄鍓插憿錛熸湁鐐規(guī)壇榪滀簡(jiǎn)錛岃繕鏄洖褰掕瘽棰樸傛懇灝?dāng)瀹氬緥杩櫩U嶅埄鐢ㄨ嚜韜殑浼樺娍鍘?#8220;緇熸不”甯?jìng)鍦虹殑鎷涘紡迤堜笉鏄彧鏈塱ntel浼?xì)鐢ㄥQ屽叾瀹炶法鍥藉ぇ鍏徃閮藉姝よ交杞︾啛璺紝Ibm鎻愬嚭鐨凷OA涓嶆鏄埄鐢ㄨ嚜韜湪浼佷笟鏈嶅姟鐨勮蔣浠跺拰紜歡浼樺娍鍐嶆鎴愪負(fù)榪欎釜甯?jìng)鍦虹殑涓诲畮图烳icrosoft涓嶆柇鐨勬帹鍑烘柊鐨勬搷浣滅郴緇熶篃鏄姝わ紝鏂版搷浣滅郴緇熺殑鎺ㄥ嚭鏈鍚庝嬌寰楁皯浼楃殑鍙h鎲嬩笅鍘諱簡(jiǎn)錛孧icrosoft鐨勮佹澘浠殑鍒鍙堝涓鏍嬨傚緢澶氭椂鍊欙紝鎴戜滑鍏跺疄鏄“鎽╁皵瀹氬緥”浜?jiǎn)锛屽彧鏄垜浠ぇ瀹堕兘杩樹(shù)笉娓呮鑰屽効銆?/span>

]]>
嫻忚鍣ㄧ綉欏靛吋瀹規(guī)ч棶棰?-DOM鍩虹綃?/title><link>http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_dom.html</link><dc:creator>Eric-1001c</dc:creator><author>Eric-1001c</author><pubDate>Sat, 17 Oct 2009 08:52:00 GMT</pubDate><guid>http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_dom.html</guid><wfw:comment>http://m.tkk7.com/Ericzhang5231/comments/298691.html</wfw:comment><comments>http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_dom.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/Ericzhang5231/comments/commentRss/298691.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/Ericzhang5231/services/trackbacks/298691.html</trackback:ping><description><![CDATA[W3C閽堝XHTML浠ュ強(qiáng)HTML寮鍙戜竴縐岲OM錛岃繖涓狣OM鏄熀浜嶩TMLElement鍜孒TMLDocument瀹炵幇鐨勩傞櫎浜?jiǎn)灏戞暟鍏冪礌鍙寘鍚獺TMLElement灞炴у拰鏂規(guī)硶澶栵紝姣忎釜HTML鍏冪礌閮介氳繃鐗瑰畾鐨凥TMLElement綾誨瀷琛ㄧず銆傜劧鑰屽茍涓嶆槸鎵浠ユ祻瑙堝櫒瀵笵OM閮芥敮鎸佺殑錛屼笅闈㈠垪鍑轟簡(jiǎn)涓浜涚粡甯鎬細(xì)閬囧埌鐨勪笉鍏煎鐨凞OM浣跨敤闂銆?br /> <br /> 1.childNodes <br /> 涓嶅悓嫻忚鍣ㄤ嬌鐢╟hildNodes鍦ㄥ鐞員ext鑺傜偣瀛樺湪涓浜涘樊寮傘侻ozilla璁や負(fù)鍏冪礌涔嬮棿鐨勭┖鐧芥槸Text鑺傜偣錛涜孖E錛屼細(xì)蹇界暐榪欎簺絀虹櫧銆傚彲浠ラ氳繃鍒ゆ柇childNodes[x].nodeValue == "#text"錛宑hildNodes[x].nodeType == 1瑙e喅榪欎釜闂錛涙垨鑰呬嬌鐢╟hildren灞炴э紝children灞炴ф槸涓涓暟緇勶紝鍙互閫氳繃绱㈠紩鑾峰彇瀛愯妭鐐癸紱<br /> <br /> 2.document<br /> IE浣跨敤document.all錛岃屼嬌鐢╠om鏍囧噯鐨勬祻瑙堝彲浠ラ氳繃document.getElementsByTagName("*") 錛?br /> <br /> 3.Id&getElementById<br /> 鍦↖E涓彲浠ユ妸Id褰撲綔鍏冪礌浣跨敤錛屼絾鍦ㄥ叾浠栨祻瑙堝櫒涓嶆敮鎸併傚洜姝ゅ緩璁嬌鐢╣etElementById錛実etElementById鍦↖E6涓嬌鐢紝濡傛灉鍏冪礌Name絳変簬Id錛屼篃浼?xì)涓鍚岃繑鍥烇紱<br /> <br /> 4.闆嗗悎鏁扮粍<br /> <span style="font-size: 12pt; font-family: 瀹嬩綋;">IE涓湪浣跨敤闆嗗悎綾誨璞℃椂鍊欙紝璁塊棶鍙互閫氳繃</span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">()</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">涓?/span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">[]</span></span>銆傚緩璁悓涓浣跨敤[]dom鏍囧噯璁塊棶錛?br /> <br /> 5.body瀵硅薄<br /> <span style="font-size: 12pt; font-family: 瀹嬩綋;">鍦?/span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">IE</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">涓?/span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">body</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">瀵硅薄瑕佸湪</span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;"><body></span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">鏍囩瀹屽叏璇誨叆鎵嶄細(xì)瀛樺湪錛岃屽湪</span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">FireFox</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">涓竴寮濮嬪氨瀛樺湪</span>錛?br /> <br /> 6.Type灞炴?br /> <span style="font-size: 12pt; font-family: 瀹嬩綋;">鍦?/span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">IE</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">涓?/span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">input</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">鏍囩鐨?/span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">type</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">灞炴ф槸鍙鐨勶紝浣嗗湪</span><span style="font-size: 12pt;"><span style="font-family: Times New Roman;">FireFox</span></span><span style="font-size: 12pt; font-family: 瀹嬩綋;">涓槸鍙鍐欑殑錛?br /> <br /> 7.removeNodes/removeChild<br /> </span><span style="font-size: 12pt; font-family: 瀹嬩綋;">鍦‵ireFox鑺傜偣涓病鏈塺emoveNode鏂規(guī)硶錛屽繀欏諱嬌鐢ㄥ涓嬫柟娉?node.parentNode.removeChild(node)</span>錛?br /> <br /> 8.ParentNode<br /> <span style="font-size: 12pt; font-family: 瀹嬩綋;">IE</span><span style="font-size: 12pt; font-family: 瀹嬩綋;">涓嶧ireFox鐨勮闂埗鍏冪礌鏈夊尯鍒紝IE涓篛bj.ParentElement灞炴?FireFox涓篛bj.ParentNode灞炴?/span><span style="font-size: 12pt; font-family: 瀹嬩綋;">瑙e喅鍔炴硶錛氬洜涓篎ireFox涓嶪E閮芥敮鎸丏OM錛屽洜姝ょ粺涓鐢≒arentNode灞炴?/span>錛?br /> <br /> 9.set/getAttribute<br /> IE鐨剆etAttribute涓嶈兘璁劇疆瀵硅薄灞炴с佷簨浠跺睘鎬у拰style鐩稿叧鐨勫睘鎬э紝瀵逛簬鑷畾涔夌殑鍙互璁劇疆錛涜娉ㄦ剰鍦‵F涓紝閫氳繃鑷畾涔夎緗殑灞炴у拰閫氳繃.鏂規(guī)硶璁劇疆鐨勫睘鎬т笉鏄悓涓涓睘鎬э紱<br /> <br /> 10.鑷畾涔夊睘鎬?br /> <span style="font-size: 12pt; font-family: 瀹嬩綋;">鍦‵F涓笉鏀寔鍍廔E閭f牱鐩存帴鑾峰彇</span>錛屽緩璁粺涓鐢╣etAttribute鏂規(guī)硶錛?br /> <br /> 11.class/className<br /> <span style="font-size: 12pt; font-family: 瀹嬩綋;">IE</span><span style="font-size: 12pt; font-family: 瀹嬩綋;">涓敤”classname”鍋氫負(fù)灞炴у悕鏉ヨ緗垨鍙栧緱css class錛孎F鍜屽叾瀹冩祻瑙堝櫒鐢?#8221;class”鍋氫負(fù)灞炴у悕鏉ヨ緗垨鍙栧緱錛孌om鏍囧噯鐨刵ode object鍏鋒湁className灞炴?br /> <br /> 12.Range<br /> 鍦↖E涓湁document.selection.createRange(),document.body[button|input].createTextRange()錛涜屽湪FF涓彲浠ラ氳繃document.getSelection()[.getRangeAt(0)];鑰屽Range鐨勬搷浣滀腑錛岄櫎浜?jiǎn)IE鍜孌OM鏍囧噯鐨勫悇縐峬ove澶栵紝FF涓殑node element榪樻湁selectionStart,selectionEnd鍙灞炴?br /> </span><br /> <br /> <img src ="http://m.tkk7.com/Ericzhang5231/aggbug/298691.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/Ericzhang5231/" target="_blank">Eric-1001c</a> 2009-10-17 16:52 <a href="http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_dom.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>嫻忚鍣ㄧ綉欏靛吋瀹規(guī)ч棶棰?-DOM EVENT綃?/title><link>http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_event.html</link><dc:creator>Eric-1001c</dc:creator><author>Eric-1001c</author><pubDate>Sat, 17 Oct 2009 04:56:00 GMT</pubDate><guid>http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_event.html</guid><wfw:comment>http://m.tkk7.com/Ericzhang5231/comments/298674.html</wfw:comment><comments>http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_event.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/Ericzhang5231/comments/commentRss/298674.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/Ericzhang5231/services/trackbacks/298674.html</trackback:ping><description><![CDATA[DOM鐨勪笉鍏煎涔熻鏄庝簡(jiǎn)DOM楂樼駭鐗規(guī)vent鐨勪笉鍏煎錛屽洜涓烘垜浠湪寮鍙慦eb鐨勬椂鍊欙紝鍜岀敤鎴風(fēng)殑澶ч噺浜や簰閮芥槸閫氳繃event鏉ュ疄鐜扮殑錛屾墍浠ュ崟鐙妸event鎶藉嚭鏉ワ紝鎶婂叾涓嶅吋瀹規(guī)у垪鍑猴細(xì)<br /> <br /> <br /> Event鐨勫吋瀹規(guī)?br /> 1.浜嬩歡嫻佺殑鍖哄埆<br /> IE         鍐掓場(chǎng)浜嬩歡嫻?nbsp;  鍦↖E6澧炲姞<html>絳夊厓绱犲浜嬩歡嫻佺殑鍝嶅簲<br /> Mozillal   鍐掓場(chǎng)浜嬩歡嫻?  鍦↖E6鐨勫熀紜涓婂鍔爓indow瀵硅薄瀵逛簨浠舵祦鐨勫搷搴?br /> Netscape   鎹曡幏浜嬩歡嫻?nbsp;  鍚孧ozillal <br /> DOM鏍囧噯    鍐掓場(chǎng)+鎹曡幏    澧炲姞鏂囨湰鑺傜偣瀵逛簨浠舵祦鐨勫搷搴旓紱鍚屾椂鍐掓場(chǎng)+鎹曡幏浣垮緱浜嬩歡鐩爣榪炵畫鎺ユ敹2嬈′簨浠?br />                        錛堣繖鍙兘鏄疍OM鐨勪簨浠跺鍔犲嚱鏁版湁絎?涓弬鏁扮殑鍘熷洜錛?br /> 2.浜嬩歡澶勭悊鍑芥暟<br /> IE         attach(eventName, fn)銆?nbsp;                     eventName=on+浜嬩歡鍚?<br />            detachEvent(eventName, fn)<br /> DOM        addEventListener(eventName,fn,boolean)<br />            removeEventListener(eventName,fn,boolean)    eventName=浜嬩歡鍚?<br />                                                         boolean=true:鎹曡幏|false:鍐掓場(chǎng)<br />                                                         remove鍙湁鍚屼簨浠舵祦鎵嶈兘璧鋒晥 <br /> 3.浜嬩歡瀵硅薄<br /> 瀹氫綅       IE錛歸indow.event錛?nbsp;                          window.event||arguments[0]<br />            DOM錛歛rguments[0]錛堜簨浠跺鐞嗗嚱鏁扮殑鍙傛暟錛夛紝鍙互閫氳繃caller鏉ラ槻姝㈢‖緙栫爜鑾峰彇錛?br /> <br /> 浜嬩歡鐩爣   IE錛歟vent.srcElement                         event.srcElement||event.target <br />            DOM:event.target<br /> <br /> 闃繪浜嬩歡   IE: event.returnValue = true                 if(isIE){window.event.returnValue = true;}<br /> 榛樿琛屼負(fù)   DOM: event.preventDefault()                  else{arguments[0].preventDefault();} <br /> <br /> 3.1 榧犳爣浜嬩歡[瀵硅薄]<br /> 榧犳爣浣嶇疆    IE錛歟vent.x,event.y                         event.x?event.x:event.PageX <br />             DOM:event.pageX, event.pageY                event.y?event.y:event.PageY<br /> 榪涘叆浜嬩歡1   IE 錛歰nmouseenter, onmouseleave             瀹冧滑鐨勫尯鍒湪浜庡鐞嗗祵濂梔om object鍑哄叆涓婏紝鍙湁<br />             DOM錛歮ouseover,mouseout                     DOM鏍囧噯鎵嶈繘琛屽鐞嗭紝enter/leave浼?xì)蹇界暐锛屼篃灏辨槸璇?<br />                                                         (fromElement!=toElement) && (this.contains(toElement)  瑙﹀彂onmouseover<br />                                                         (fromElement!=toElement) && (this.contains(fromElement) ) 瑙﹀彂onmouseout<br /> 榪涘叆浜嬩歡2   IE錛歟vent.fromElement|toElement錛?br />                 event.srcElement<br />             DOM錛?target錛宺elatedTarget                 瀵逛簬mouseover錛歠romElement=relatedElement,toElement = srcElement=target;<br />                                                         瀵逛簬mouseout : toElement=relatedElement,fromElement = srcElement=target; <br /> <br /> 3.2 閿洏?shù)簨錃g<br /> 瀛楃浠g爜    IE錛歟vent.keyCode錛汥OM: 鏁板間唬鐮?event.keyCode銆俥vent.isChar?event.charCode:event.keyCode 錛屽湪FF涓紝keyCode鍙兘鑾峰緱鍔熻兘閿殑鏁板間唬鐮侊紝鍏朵粬鐨勯渶閫氳繃which鍜宑harCode錛屽湪Opera涓紝鍒欏彧鑳介氳繃which<br /> <img src ="http://m.tkk7.com/Ericzhang5231/aggbug/298674.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/Ericzhang5231/" target="_blank">Eric-1001c</a> 2009-10-17 12:56 <a href="http://m.tkk7.com/Ericzhang5231/articles/javascript_differ_event.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>N璁扮殑Scrum浣跨敤緇忛獙http://m.tkk7.com/Ericzhang5231/articles/scrum.htmlEric-1001cEric-1001cWed, 20 Aug 2008 07:56:00 GMThttp://m.tkk7.com/Ericzhang5231/articles/scrum.htmlhttp://m.tkk7.com/Ericzhang5231/comments/223281.htmlhttp://m.tkk7.com/Ericzhang5231/articles/scrum.html#Feedback0http://m.tkk7.com/Ericzhang5231/comments/commentRss/223281.htmlhttp://m.tkk7.com/Ericzhang5231/services/trackbacks/223281.htmlhttp://blackanger.blog.51cto.com/140924/66305

浠婂ぉ鍜屼竴涓湪璇哄熀浜氬伐浣滆繃鐨勬湅鍙嬭亰Scrum錛岃鍩轟簹鎺ㄥ箍Scrum鏈変袱騫村錛屽拰浠栦氦嫻佸鍒頒簡(jiǎn)寰堝涓滆タ錛岀粰澶у鍒嗕韓涓涓嬶細(xì)

錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛?br />
涓孌靛瘨鏆勪箣鍚庛傘傘?br />
(19:58:23) i: 璇哄熀浜氱敤Scrum鏈夊闀挎椂闂翠簡(jiǎn)闃?br /> (19:58:24) he: 綆楁槸鐢ㄨ繃.鍛靛懙
(19:59:06) he: 鏁翠釜鍏徃鎺ㄨ榪欎釜澶ф涔熸湁涓ゅ勾鐨勬牱瀛?br /> (19:59:18) he: 涓嶈繃鍏蜂綋鍒版垜榪欒竟澶ф鏄竴騫村
(19:59:21) i: 鏃墮棿涔熶笉綆楃煭
(19:59:58) i: 閭d綘緇欐垜璇翠笅閭h竟鐨勬儏鍐墊庝箞鏍?D
(20:00:36) he: 鍏跺疄鎬庝箞璇村憿...N璁頒互鍓嶇殑椋庢牸閮芥槸浣滃潑鍨嬬殑
(20:00:49) he: 姣忎釜浜у搧緇勫氨鏄釜灝忎綔鍧?鎵浠ラ鏍煎悇寮?br /> (20:01:01) he: 鏈夌殑閫傚簲Scrum灝卞揩涓浜?鏈夌殑灝辨湁浜涜蛋鏍?br /> (20:01:16) i: 閭d綘鎵鍦ㄧ殑灝忎綔鍧婃庝箞鏍?br /> (20:01:19) i: 鍛靛懙
(20:02:06) he: 涓嶈繃涓嶇鏈鍚庢槸涓嶆槸鏈変簺璧版牱,榪樻槸鏈変簺濂藉
(20:02:20) i: 鍏蜂綋嫻佺▼鍛?br /> (20:02:31) he: 鍏跺疄涓昏鍘熷洜鏄畠鍘熸潵榪樻湁涓濂楁爣鍑嗙殑浜у搧绔嬮」, 寮鍙? 嫻嬭瘯,
鍙戝竷嫻佺▼.
(20:02:41) he: 鐒惰屽張瑕佹妸Scrum紜鍒頒腑闂村幓
(20:02:55) he: 榪欎腑闂村叾瀹炲氨寰楃湅鎵ц鐨勫洟闃熷拰涓漢鏉冭 浜?br /> (20:02:58) i: 榪欐牱鏄ソ榪樻槸涓嶅ソ銆?br /> (20:03:17) he: 鏄繖鏍?br /> (20:03:56) he: 綆瑕佺殑鏉ヨ,鍘熸潵鐨勫彂甯冩祦紼嬫槸: 鍙鎬х爺絀?-> 绔嬮」 -> 寮鍙?br /> -> 嫻嬭瘯 -> 璇曠敤 -> 鍙戝竷
(20:04:26) i: 浣跨敤scrum浠ュ悗鏄傘?br /> (20:05:08) i: 鍏蜂綋嫻佺▼鏄惁涓ユ牸鎸塖crum鐨勮鍒欐潵鍋氱殑鍛?br /> (20:05:37) he: 閭d箞...鎯蟲(chóng)妸Scrum宓屽叆鍒板紑鍙戣繖涓樁孌靛幓
(20:06:00) i: 鎭?br /> (20:06:00) he: 瀵瑰闈㈡潵璇村師鏉ョ殑閭e嫻佺▼灝變笉鍙?..
(20:06:08) he: 鎵浠ユ湁浜涘湴鏂瑰氨琚寰楀緢姝?br /> (20:06:24) i: 姣斿銆傘?br /> (20:06:39) he: 濡傛灉鍥㈤槦鍙湪寮鍙戣繖涓懆鏈熷仛涓涓や釜榪唬...閭d箞灝遍鍖栧緱璺熷師
鏉ョ殑嫻佺▼宸笉澶氫簡(jiǎn)

(20:07:05) i: 鎴戞劅瑙塖crum鍙互鏇夸唬榪欐暣涓祦紼嬪惂銆?br /> (20:07:20) he: 鍡?)涓嶈繃閭d笉鏄垜鑳芥敼鍙樼殑
(20:07:43) i: 閭d綘涓漢璁や負(fù)嫻佺▼璇ユ庝箞鏀瑰彉鎵嶆瘮杈冨ソ
(20:07:55) i: 灝辨嬁N浠ュ墠鐨勮繖涓負(fù)渚嬪瓙
(20:08:07) he: 鍓嶅洓涓叾瀹為兘鍙互
(20:08:24) he: 涓嶈繃鍥犱負(fù)鍒氭帹琛岀殑鏃跺欏ぇ瀹墮兘瀵筍crum娌℃湁搴?br /> (20:08:38) he: 涓婅竟涔熶笉鎰挎剰鍘繪妸鏂頒笢瑗挎悶寰楅偅涔堟縺榪?br /> (20:09:53) i: 鍙槸鎴戞劅瑙夋妸寮鍙戦偅涓幆鑺傞噰鐢╯crum涔熺畻鏄紜殑鍚э紝鍥犱負(fù)鍓?br /> 闈㈢殑鍙鎬х爺絀舵柟闈㈠浣曞幓scrum鍛?br /> (20:10:33) he: 鍡?鍙鎬х爺絀剁殑鎰忔?br /> (20:10:44) he: 鍏跺疄灝辨槸鎶戒袱涓変釜鏈綺懼共鐨勪漢
(20:10:51) he: 緇勬垚涓涓鐮旂殑灝弔eam
(20:11:08) i: en
(20:11:17) he: 鐒跺悗鍦ㄧ粰瀹氱殑鏃墮棿鍐呮妸PM榪樻病鏈夋妸鎻$殑鍔熻兘浣滃嚭demo鏉ラ獙璇佷竴
鏉¤礬鑳戒笉鑳借蛋閫?br /> (20:11:23) he: 鍏跺疄鏄弧閫傚悎Scrum鐨?br /> (20:11:32) he: 涓漢瑙夊緱:)
(20:11:38) i: 鎭╋紝鏈夐亾鐞?br /> (20:12:05) i: Scrum榪欎釜姒傚康鍒版槸涓嶄粎浠呮嫎娉ヤ簬寮鍙?br /> (20:12:16) he: 鐒跺悗榪欎簺灝廸eature鐨刣emo灝變細(xì)鏀寔涔嬪悗鐨勭珛欏圭敵璇?鎵嶈兘鎷垮埌
緇忚垂
(20:12:42) i: 閭g幇鍦?strong>璇哄熀浜氱殑scrum榪樻槸鍦ㄥ紑鍙戠幆鑺?/strong>涓婂悧
(20:13:02) he: 鏄殑
(20:13:21) i: 閭g幇鍦ㄦ槸綆楁垚鍔熷憿錛岃繕鏄傘傘?br /> (20:13:26) he: 鎹垜浜?jiǎn)瑙e鏁版?br /> (20:13:45) he: 鍡?涓嶇鎬庝箞璇? 瀹冨茍涓嶅儚涓涓師鏉ユ爣鍑嗙殑鏍峰瓙, 浣滀簡(jiǎn)鏌愪簺濡ュ崗
(20:13:45) i: 瀵逛簡(jiǎn)錛屽拰浣犲垎浜竴鏈功
(20:13:55) he: 浣嗘垜瑙夊緱榪樻槸鎻愰珮?shù)簡(jiǎn)鏁堢巼鐨?)
(20:14:16) he: 铏界劧,寰堝ぇ紼嬪害涓婂彇鍐充簬鍥㈤槦鍜屼釜浜鴻嚜瑙夌▼搴?br /> (20:14:56) i: 浣犺錛屽亣濡傝浣犲湪涓涓笅鍥㈤槦閲屽幓瀹炴柦Scrum錛屼綘浼?xì)濡備綍鍋氬?br /> (20:15:22) i:
http://www.infoq.com/minibooks/scrum-xp-from-the-trenches
浠婂ぉ鍦╥nfoq鐪嬪埌榪欐湰涔︺?br /> (20:15:41) he: 鍛靛懙, 榪欐湰鎴戞湁PDF
(20:16:10) i: 鍣€傘傘?br /> (20:16:13) i: hehe
(20:16:26) he: 涓嶈繃娌$湅瀹?)
(20:16:33) i: 璇磋浣犵殑鎯蟲(chóng)硶錛屽叧浜庢垜鍒氭墠閭d釜闂
(20:17:41) he: 鏄繖鏍? 鎴戜互鍓嶅甫鐨勫洟闃熼氬父閮芥槸鍦ㄩ鐮斾箣鍚庢帴鎵嬬殑
(20:18:08) he: 鎵浠ュ湪榪欎釜闃舵涔嬪墠, 涓昏榪樻槸鍜孭roduct Manager璁ㄨ浠栫殑闇
姹?br /> (20:18:24) he: 鎮(zhèn)ㄥ彲浠ユ妸N璁扮殑Product Manager鐪嬩綔涓涓唴閮ㄥ鎴?br /> (20:18:30) i: 鎭╋紝閭d簺backlog瑕佸垪鍑烘潵鍚?br /> (20:18:46) he: 榪樹(shù)笉鍒癇acklog閭i噷....
(20:18:53) i: 濂斤紝浣犵戶緇紝鍛靛懙
(20:19:06) he: Product Manager浼?xì)鎻愬囖Z粠浠栬嚜宸辯殑瑙掑害鍑哄彂鏈鐪嬮噸鐨勯渶姹?br /> (20:19:26) he: 榪欎簺闇姹備篃璁告槸寰堢畝鐭殑琛ㄨ堪,灝卞儚涓涓甫鍦烘櫙鐨剈ser story
(20:19:33) i: 鎭?br /> (20:19:47) he: 鍥犱負(fù)浠栦笉浼?xì)寰堝厸_績(jī)鎶鏈? 浠栨洿澶氱殑浠h〃甯?jìng)鍦?br /> (20:20:58) he: 鎵浠ヤ粬鐨勯渶姹備篃璁告槸榪欐牱瀛愮殑:
鑺傜偣A灝嗘敮鎸佺伒媧葷殑瀛樺偍璁懼, 鑷姩鐩戞祴瀹㈡埛緇欎笌鐨勫瓨鍌ㄨ澶囨暟閲忓茍浣滃嚭鎸夋瘮渚?br /> xx:xx鐨勭┖闂村崰鐢?br />
(20:21:21) i: 瀵癸紝鍙槸涓猽ser story
(20:21:31) i: 涓嬩竴姝ュ憿
(20:21:55) he: 鎴栬呭綋鐢ㄦ埛B鐨剉oice浼犺緭鍒拌妭鐐笴鏃?灝嗚嚜鍔ㄧ洃嫻嬪叾濯掍綋綾誨瀷騫?br /> 鍋氬嚭璐ㄩ噺鍜岀紪鐮佺殑鍙樻崲
(20:22:27) he: 榪欎簺user story, 鎴戜滑閫氬父浼?xì)鍦ㄤ粬鐨勪細(xì)璁笂鍏堣C笅鏉? 鏁寸悊鎴?br /> 涓涓猯ist
(20:22:50) he: PM浼?xì)缁欏囖Z粬鐪嬮噸鐨勪紭鍏堢駭
(20:23:07) i: 瀹㈡埛緇欏嚭浼樺厛綰?錛?br /> (20:23:38) he: 瀵圭殑, 姣斿璇? 灝辯浉褰撲簬闂粬: 鎮(zhèn)ㄦ渶甯屾湜鍦ㄧ涓涓猟emo day涓?br /> 鐪嬪埌鐨勬槸鍝竴涓猣eature?
(20:23:43) i: 鑰屼笉鏄垜浠垎鏋愰渶姹傚幓鍒楀嚭浼樺厛綰э紝鏄庣櫧
(20:23:48) he: 鎴栬呮?zhèn)ㄦ渶甯屾湜鎺ㄥ悜甯?jìng)鍦哄崠鐨勬槸鍝竴涓?br /> (20:23:54) i: 鎭?br /> (20:23:58) he: 鏄殑,瀹冮鍏堟槸闈㈠悜feature鐨?br /> (20:24:04) he: 鐒跺悗...鎴戜滑涓嶈兘鍏ㄩ兘絳斿簲
(20:24:27) i: 涓轟粈涔?br /> (20:24:44) i: 鍙互鍒嗚凱浠f潵鍋氬惂
(20:24:59) he: 鎴戜滑闇瑕佷笌鍋歠easibility study鐨則eam娌熼?鐪嬬湅浠栨墍鎻愬嚭鐨?br /> 瑕佹眰鏄笉鏄兘鑳藉疄鐜?鎴栬呰兘鍚︿互鍙互鎺ュ彈鐨勪唬浠峰疄鐜?/strong>
(20:25:22) i: 鍣?br /> (20:25:48) i: 鎬庝箞鍙堝洖鍒扮涓鐜妭浜?br /> (20:25:59) he: 濡傛灉涓嶈兘瀹炵幇, 鎴戜滑鍙互榪涗竴姝ヨ窡浠栫‘璁? 鎮(zhèn)ㄧ湅, 浣犳墍璇寸殑
feature鏄疉, 浣嗘槸鎴戜滑瑙夊緱鎮(zhèn)ㄦ洿闇瑕佺殑鍙兘鏄疉+
(20:26:28) he: 鎴栬? 鎮(zhèn)ㄧ湅, 鍦ㄧ粰鍑虹殑寮鍙戝懆鏈熷唴A涓嶈兘鍏ㄩ兘瀹炵幇, 鏄惁鍙互鍏?br /> 瀹炵幇A- ...
(20:26:58) he: 鎴栬呭綋鍓嶇殑騫沖彴瀵逛簬瀹炵幇A鏈夋墍闄愬埗, 鎴戜滑鍙互緇欐?zhèn)ㄦ彁渚涗袱涓?br /> 鑰? A1 鎴栬匒2
(20:27:11) he: 鏈夌殑鏃跺欎粬鎴栬呭ス閮戒細(xì)鍜嗗摦...
(20:27:13) i: 鎭╋紝搴旇鏄閲忓紡寮鍙戯紝涓姝ユ瀹屾垚瀹㈡埛鐨勯渶姹?br /> (20:27:28) i: 鍛靛懙
(20:27:30) he: 鎴栬呮垜浠弻鏂歸兘鍦ㄥ拞鍝?..
(20:28:17) he: 閭d箞涔熻鏈鍚庤揪鎴愮殑緇撴灉鍙兘浼?xì)鏄垜浠渶瑕佸湪絎竴涓猟emo涓綔
鍑篴, 鐒跺悗鍚屾椂絳夊緟鍙﹀涓涓猼eam鐨勭粍浠禸鐨勬晥鏋? 濡傛灉涓嶈,閭d箞backup鍙兘鏄?br /> c...
(20:28:57) he: 榪欎釜濡ュ崗鍚庣殑緇撴灉閫氬父琚О涓簆roduct feature backlog
(20:29:24) he: 瀹冨浜庢妧鏈粏鑺傚叧娉ㄥ緢灝?涓昏鍏蟲(chóng)敞鏈鍚庤兘瀹屾垚鐨刦eature
(20:29:34) i: 鍣?br /> (20:30:02) i: 榪欎釜鏃跺欏埌sprint璁″垝浼?xì)璁潵缁嗗垎杩欎簺backlog浜?jiǎn)鍚?br /> (20:30:06) he: 瀹㈡埛鍦ㄤ氦璐ф垨鑰呬腑闂寸‘璁よ繘搴︾殑鏃跺欑湅鐨勯氬父閮芥槸feature
backlog
(20:30:45) he: 鏄殑, 閫氬父涔嬪悗姣忎釜feature team閮戒細(xì)鍙泦璧鋒潵寮浼?br /> (20:30:55) he: 涔熷氨鏄疭crum team
(20:31:08) he: 灝嗘瘡涓猣eature閮藉垎瑙d負(fù)鎶鏈笂瀹炵幇鐨勬楠?/strong>
(20:31:32) i: 鐒跺悗緇嗗垎鍑烘潵浜ょ粰鍥㈤槦銆?br /> (20:31:35) he: Scrum Master 浼?xì)灏啒q欎簺姝ラ浣滀負(fù)涓涓釜TASK綰綍
(20:31:45) he: 涓嶆槸緇嗗垎鍑烘潵浜ょ粰鍥㈤槦...
(20:32:01) he: 榪欎釜鏃跺欐瘡涓洟闃熼兘鍙備笌榪涙潵鐪嬭嚜宸辯殑閭i儴鍒唂eature backlog
浜?br />
(20:33:05) i: Scrum Master 璁板綍閭d簺task鍋氫粈涔堛?br /> (20:33:07) he: 鎴愬憳鐜嬪皬鑺卞彲鑳戒細(xì)璇?..鎴戣鐫鍚?瑕佸疄鐜癴eature A 鍙兘鎴戜滑
闇瑕佸厛鍦ㄥ悗孌靛瓨鍌╯涓婂疄鐜頒竴涓娊璞″眰InfA
(20:33:22) he: 瀹冮渶瑕乺outine A1 A2 A3鏉ュ仛
(20:33:31) he: 鐜嬩簩楹誨瓙鍙兘鍙嶅...
(20:33:46) i: 鍛靛懙銆?br /> (20:33:59) he: 璇存垜瑙夌潃鎴戜滑鍙渶瑕佹湇鐢ㄧ粍浠禕鍜岀粍浠禖鎻愪緵鐨勬湇鍔℃帴鍙nfB1鍜?br /> InfC2...
(20:34:20) he: 鐒跺悗緇欎竴涓甫璺敱琛ㄧ殑閰嶇疆鏂囦歡...
(20:34:30) i: 閭h繖涓細(xì)璁渶緇堢洰鏍囨槸瑕佸共浠涔堬紝鎴栬呰瑕佸緱鍒頒粈涔堢粨鏋?br /> (20:34:53) he: 鏈鍚庣殑榪欎簺task, 灝變細(xì)褰㈡垚涓涓懆鏈熷唴鐨剆print backlog
(20:35:13) he: 鑳藉姏瓚婂ソ鐨勫洟闃? 鎵鑳界粏鍒嗗嚭鏉ョ殑task瓚婄簿紜?br /> (20:35:19) i: 鍣紝鏄寚瀹歜acklog鐨勮繃紼?br /> (20:35:27) he: 閫氬父綺掑害鎺у埗鍦?0h
(20:36:28) i: 濡傛灉闇姹傛湁鍙樼殑鎯呭喌濡備綍澶勭悊
(20:37:02) i: 鍦ㄨ凱浠g殑鏃跺?br /> (20:37:14) he: 鍡?..鎴戣寰椾笂嬈℃煇澶у笀鏉ヨ搴х殑鏃跺欐垜浠篃闂繃
(20:37:35) i: 鍛靛懙錛屾庝箞鍥炵瓟鐨?br /> (20:37:45) he: 浠栫殑絳旀鏄爣鍑嗗仛娉曟槸緇х畫鎶妔print鍋氬畬,鐒跺悗鍦ㄦ帴涓嬫潵鐨勪竴涓?br /> sprint涓畬鎴愬彉鍔?br /> (20:38:11) i: 鏄庣櫧浜?jiǎn)銆傘傘?br /> (20:38:37) i: 閭h凱浠f湡闂翠綘浠湁姣忔棩渚嬩細(xì)鍚?br /> (20:39:02) he: 鏄殑, daily meeting
(20:39:25) i: 瀵逛簡(jiǎn)錛屼綘浠槸涓嶆槸涔熻繖鏍峰鐞嗛渶姹傜殑鍙樺寲錛屾斁鍦ㄤ笅涓猻print閲?br /> (20:39:47) he: 涓嶆槸
(20:39:53) he: 鎴戜滑鐨剆print 鍛ㄦ湡闀胯揪涓涓湀..
(20:40:10) i: Scrum閲岃鍒欐槸涓涓湀銆傘傘?br /> (20:40:17) i: 閭c傘傘?br /> (20:40:19) he: 鎵浠ラ氬父鎴戜滑鏈塪rop涓涓棫鐨勫拰add涓涓柊鐨?/strong>
(20:40:42) he: 闄や簡(jiǎn)閫氬父姣旇緝綆鍖栫殑Not Started. On Going鍜孌one 涓変釜鐘舵?br /> 涔嬪
(20:40:56) he: 鎴戜滑鏈塂ropped鍜孉dded
(20:42:07) i: 鍣紝榪欐牱澶勭悊涔熷緢縐戝
(20:42:46) he: 鍛靛懙:)鍥犱負(fù)鏈夋椂鍊欎竴涓湀榪樻槸澶暱
(20:43:00) he: 鍥犱負(fù)瀵逛簬涓ゅ湴鎴栬呬笁鍦頒箣闂寸殑鍗忓悓寮鍙?br /> (20:43:06) he: 涓涓湀鍙互鍙戠敓鐨勪簨鎯呭お澶氫簡(jiǎn)
(20:43:23) he: 灝ゅ叾鏄繖鍑犱釜鍦版柟閮芥湁鏃跺樊鐨勬椂鍊?br /> (20:43:47) i: 涓嶈繃榪唬娌℃湁瀹屾垚鐨勮瘽錛屼篃璁稿鎴蜂笉娓呮鑷繁闇姹傜殑鍙樻洿鏄ソ
鏄潖錛屽ぇ甯堥偅涔堣涔熸湁閬撶悊鍚с傝凱浠e畬鎴愶紝璁╁鎴風(fēng)湅浜?jiǎn)浠ュ悗浠栧啀鐪嬫槸鍚﹀彉鍖栭渶姹傘?br /> (20:44:02) i: 鎴戣鐨勬湁娌℃湁鍙兘 錛?br /> (20:44:30) he: 鏄殑:)
(20:45:06) he: 浣嗘槸鏈夋椂鍊欓渶姹傜‘瀹炲緢鎬?..
(20:45:09) i: 鍏蜂綋搴旂敤鍏蜂綋澶勭悊鍚э紝璧風(fēng)爜鏈変簡(jiǎn)澶勭悊鐨勫姙娉曘?br /> (20:45:13) i: 鎭?br /> (20:45:19) he: 姣斿紿佺劧鎷挎煇縐誨姩鐨勫崟
(20:45:27) he: 鑰岃瀹㈡埛浠ラ渶姹傛紓钁楃О
(20:45:34) i: 鍛靛懙
(20:45:38) he: 榪欑鎯呭喌涓嶄竴瀹氶潪寰楃瓑鍒頒笅涓涓?/strong>...
(20:45:45) i: 紜疄
(20:45:55) i: 鎷ユ姳鍙樺寲
(20:46:29) he: 鍏跺疄鎴戣寰楀緢渚濊禆鍥㈤槦鎴愬憳鐨?br /> (20:46:36) he: 濡傛灉鍥㈤槦鎴愬憳寰堜笉縐瀬
(20:46:36) i: Scrum鐨勮鍒欎篃搴旇鏄鍚堝疄闄呮儏鍐電殑緇忛獙鎬ф柟娉曟墠鑳藉彂鎸ヨ兘
閲忋?br /> (20:46:47) i: 涓漢鏁忔嵎鎬?br /> (20:46:55) he: 閭d箞sprint planning灝變細(xì)姝繪皵娌夋矇鍙樻垚浠誨姟鎸囨淳...
(20:47:09) i: Scrum閲岄潰璇磋嚜鎴戠鐞?br /> (20:47:31) i: 濡備綍璋冨姩鎴愬憳鐨勭Н鏋佹ф潵鏇村ソ鐨勫洟闃熻嚜鎴戠鐞?br /> (20:49:18) he: 鍏跺疄鍘熸潵鎴戝甫鐨則eam姣旇緝瀹為檯涓鐐?...
(20:49:23) he: 姣忎釜sprint閮芥湁demo...
(20:49:29) i: 閭eぉ鍦╥nfoq涓婄湅浜?jiǎn)涓綃囨枃绔狅紝鍏充簬榪欎釜闂錛屾槸璇村洟闃熸垚鍛樼殑
涓諱漢緲佺簿紲炰笉澶?br /> (20:49:38) i: 鎭╋紝浣犵戶緇?br /> (20:49:53) he: 澶у閫氬父閮藉緢鏈熸湜demo day閭eぉPM鍙戣瘽璇? 鍡?瀵圭殑,鎴戝氨鏄兂
瑕佽繖涓?br /> (20:50:10) he: 濡傛浠ユ潵...鏁翠釜team灝辮兘鐢寵棰勭畻鍑哄幓澶у悆澶у枬浜?br /> (20:50:20) he: 鍥犱負(fù)鏁翠釜team閮芥瘮杈冨ソ鍚?..
(20:50:23) i: 鍛靛懙
(20:50:29) he: 鎴愰兘濂藉悆鐨勫湴鏂瑰緢澶?涔熶笉寰堣吹
(20:50:39) i: 濂藉悆涓嶆噿鍋?br /> (20:50:58) he: 鍡?鎬葷殑鏉ヨ,灝辨槸寰楁湁promotion:)
(20:51:05) he: 鎴戜釜浜鴻寰?br /> (20:51:29) i: 涓浜涚墿璐ㄦ縺鍔?br /> (20:52:10) he: 鍛?.鍏跺疄涔熶笉闄愪簬榪欎釜...鐗╄川
(20:52:28) he: 鎮(zhèn)ㄨ:)
(20:53:06) i: 姣斿涓璧峰嚭鍘繪父灞辯帺姘達(dá)紝鏀炬澗涓竴涓ゅぉ
(20:53:19) he: 鍡?br /> (20:54:10) i: 瀵逛簡(jiǎn)錛屼綘浠敤鐪嬫澘娌℃湁
(20:54:39) i: 鏄湁涓撻棬鐨勭郴緇熻繕鏄墜宸ョ湅鏉?br /> (20:55:38) he: 鍝?鏈?strong>涓闂村眿涓撻棬鎹簡(jiǎn)鐜葷拑鏉跨殑
...
(20:55:50) i: 甯哥敤鍚?br /> (20:55:53) he: 鍥涢潰澧欏彲浠ヤ貢娑備貢鐢?/strong>....
(20:56:03) he: 鍡?緇忓父:P
(20:56:08) i: 鍛靛懙
(20:56:21) i: 鎴戜滑榪欐柟闈㈠仛鐨勪笉澶
(20:56:25) he: 閽堝team閲屽勾杞諱漢琛ㄧ幇嬈查兘姣旇緝寮虹殑鐗圭偣
(20:56:31) he: 鎴戜滑鍒掑嚭涓闈㈠鏉?br /> (20:56:40) he: 褰撴湀sprint瀹屾垚鐨勬渶濂界殑騫磋交浜?br /> (20:56:46) he: 鏈夋潈鍗犳湁閭i潰澧?/strong>...
(20:56:53) i: 鍛靛懙
(20:57:02) he: 鍙涓嶅啓鐨勫お鍙嶅姩...闅忎究浠栨庝箞瑙勫垝
(20:57:04) i: 娑傞甫鍚?br /> (20:57:08) he: 鍡?宸笉澶?br /> (20:57:25) he: 瀵圭緸娑╂ч槦鍛樼殑鏁堟灉鍙兘灝卞樊涓浜?br /> (20:57:33) i: 鎸烘湁鎰忔?br /> (20:57:54) he: :)
銆傘傘?br /> end


]]>
鍒╃敤鍥炶皟瀹炵幇Spring+Hibernate涓殑鎵歸噺鍒犻櫎http://m.tkk7.com/Ericzhang5231/articles/220158.htmlEric-1001cEric-1001cTue, 05 Aug 2008 06:41:00 GMThttp://m.tkk7.com/Ericzhang5231/articles/220158.htmlhttp://m.tkk7.com/Ericzhang5231/comments/220158.htmlhttp://m.tkk7.com/Ericzhang5231/articles/220158.html#Feedback0http://m.tkk7.com/Ericzhang5231/comments/commentRss/220158.htmlhttp://m.tkk7.com/Ericzhang5231/services/trackbacks/220158.html 鍒╃敤hibernate鎻愪緵鐨勫洖璋冩満鍒訛紝鍙互瀹炵幇鎵歸噺鍒犻櫎錛屽叿浣撴柟娉曟槸錛?br />
 1getHibernateTemplate().execute(new HibernateCallback(){
 2   public Object doInHibernate(Session session) throws HibernateException, SQLException {
 3    List result = new ArrayList();
 4    String hql = "delete Object";
 5    Query query = session.createQuery(hql);
 6    result.add(new Integer(query.executeUpdate()));
 7    return result;
 8   }

 9   
10  }
);

榪欑鍋氭硶hibernate鍙細(xì)鐢熸垚涓鏉ql錛屾晥鐜囩浉瀵硅緝楂樸備絾鏄埄鐢ㄥ洖璋冩満鍒訛紝灝界鑳藉垹闄ゆ暟鎹簱鐨勬暟鎹紝鑰屼竴綰х紦瀛樹(shù)腑鐨勬暟鎹茍娌℃湁鍒犳帀錛屽洜姝ゅ湪浣跨敤鐨勬椂鍊欒鏍煎灝忓績(jī)

]]>
LDAP:error code 涓瑙堣〃 http://m.tkk7.com/Ericzhang5231/articles/213279.htmlEric-1001cEric-1001cTue, 08 Jul 2008 03:27:00 GMThttp://m.tkk7.com/Ericzhang5231/articles/213279.htmlhttp://m.tkk7.com/Ericzhang5231/comments/213279.htmlhttp://m.tkk7.com/Ericzhang5231/articles/213279.html#Feedback0http://m.tkk7.com/Ericzhang5231/comments/commentRss/213279.htmlhttp://m.tkk7.com/Ericzhang5231/services/trackbacks/213279.html0 LDAP_SUCCESS Success
1 LDAP_OPERATIONS_ERROR Operations error
2 LDAP_PROTOCOL_ERROR Protocol error
3 LDAP_TIMELIMIT_EXCEEDED Timelimit exceeded
4 LDAP_SIZELIMIT_EXCEEDED Sizelimit exceeded
5 LDAP_COMPARE_FALSE Compare false
6 LDAP_COMPARE_TRUE Compare true
7 LDAP_STRONG_AUTH_NOT_SUPPORTED Strong authentication not supported
8 LDAP_STRONG_AUTH_REQUIRED Strong authentication required
9 LDAP_PARTIAL_RESULTS Partial results
10 LDAP referral error and is a good indication that the LDAP server is set up to use referrals. However, WebSphere Portal does not support LDAPs with referrals.
(solution: 1. The LDAP administrator can disable referrals and ensure that your wpconfig.properties file has the correct LDAP settings listed. 2. Use a different LDAP server that does not have or require referrals.)
16 LDAP_NO_SUCH_ATTRIBUTE No such attribute
17 LDAP_UNDEFINED_TYPE Undefined attribute type
18 LDAP_INAPPROPRIATE_MATCHING Inappropriate matching
19 LDAP_CONSTRAINT_VIOLATION Constraint violation
20 LDAP_TYPE_OR_VALUE_EXISTS Type or value exists
21 LDAP_INVALID_SYNTAX Invalid syntax
32 LDAP_NO_SUCH_OBJECT No such object
33 LDAP_ALIAS_PROBLEM Alias problem
34 LDAP_INVALID_DN_SYNTAX Invalid DN syntax
35 LDAP_IS_LEAF Object is a leaf
36 LDAP_ALIAS_DEREF_PROBLEM Alias dereferencing problem
48 LDAP_INAPPROPRIATE_AUTH Inappropriate authentication
49 LDAP_INVALID_CREDENTIALS Invalid credentials
50 LDAP_INSUFFICIENT_ACCESS Insufficient access
51 LDAP_BUSY DSA is busy
52 LDAP_UNAVAILABLE DSA is unavailable
53 LDAP_UNWILLING_TO_PERFORM DSA is unwilling to perform
54 LDAP_LOOP_DETECT Loop detected
64 LDAP_NAMING_VIOLATION Naming violation
65 LDAP_OBJECT_CLASS_VIOLATION Object class violation
66 LDAP_NOT_ALLOWED_ON_NONLEAF Operation not allowed on nonleaf
67 LDAP_NOT_ALLOWED_ON_RDN Operation not allowed on RDN
68 LDAP_ALREADY_EXISTS Already exists
69 LDAP_NO_OBJECT_CLASS_MODS Cannot modify object class
70 LDAP_RESULTS_TOO_LARGE Results too large
80 LDAP_OTHER Unknown error
81 LDAP_SERVER_DOWN Can't contact LDAP server
82 LDAP_LOCAL_ERROR Local error
83 LDAP_ENCODING_ERROR Encoding error
84 LDAP_DECODING_ERROR Decoding error
85 LDAP_TIMEOUT Timed out
86 LDAP_AUTH_UNKNOWN Unknown authentication method
87 LDAP_FILTER_ERROR Bad search filter
88 LDAP_USER_CANCELLED User cancelled operation
89 LDAP_PARAM_ERROR Bad parameter to an ldap routine
90 LDAP_NO_MEMORY Out of memory

]]>
Chapter 7 Defining Portals and Pageshttp://m.tkk7.com/Ericzhang5231/articles/212742.htmlEric-1001cEric-1001cSat, 05 Jul 2008 08:06:00 GMThttp://m.tkk7.com/Ericzhang5231/articles/212742.htmlhttp://m.tkk7.com/Ericzhang5231/comments/212742.htmlhttp://m.tkk7.com/Ericzhang5231/articles/212742.html#Feedback0http://m.tkk7.com/Ericzhang5231/comments/commentRss/212742.htmlhttp://m.tkk7.com/Ericzhang5231/services/trackbacks/212742.html

7.1 Logical Structure of a Portal

The portal uses a tree like hierarchical structure, where the root o tree is called Content Root. Nodes in this hierarchy belong to one of the following types:

Pages

Labels,

URLs,

Pages: the basic building block used for displaying content in the form of portlets. Page nodes may contain other nodes, including other pages.

Labels: a placeholder for pages. Labels may contain other nodes, but display no content, and are used to provide logical grouping of nodes which are used to define common attributes such as access permissions.

URLs: used to access any resource that can be addressed with a URL. URLs obviously do not contain any other nodes. URLs are useful for addressing external Web sites or another part of the portal.

7.2 Browsing through the Content Hierarchy

7.2.1 The Manage Pages window allows you to browse through the content hierarchy. On the right-hand side of the current node name are some buttons:

Editing page properties

Editing page layout (only for page nodes)

Controlling access permissions

Deleting the node

7.2.2 Page Inheritance with Shared Pages

When content of a new page is based on another page, the new page is essentially the aggregation of the existing page with a new specialized layer on top of latter. This implies that a prerequisite for accessing a page using a shared page is that both the page and the shared page must be accessible by the user. Shared pages essentially implement a form of inheritance. A page based on a shared page inherits the layout and content of latter.

An important characteristic of share pages is that any changes made to the share page are reflected on all the pages referencing it. A shared page can reference another shared page, thus creating a chain of page references.

7.2.3 Advanced Layout Editing

WebSphere Portal allows six different page basic layouts. Click the Configure button in top-right corner of the window, we can check the box reading Show Toggle Link for Show Layout Tools/Hide Layout Tools. Once do this, the six layout patterns are no longer visible and you may customize your layout by adding as many container as you want. For each column container you may set its width, as well as add row containers within it.

7.2.4 Locks

The Locks tab allows the administrator to limit the flexibility of a user in editing the page layout and content. Locking the container prevents users from removing this container from a page, whereas locking the container content prevents users from adding or removing portlets and sub containers from the container. Lock are applicable to shared pages, and allow top-level administrators in cascading portals to define content that is mandatory in a page. Of course, you can un-lock containers.



]]>
Chapter 1 Introducehttp://m.tkk7.com/Ericzhang5231/articles/websphereportal.htmlEric-1001cEric-1001cSat, 05 Jul 2008 08:04:00 GMThttp://m.tkk7.com/Ericzhang5231/articles/websphereportal.htmlhttp://m.tkk7.com/Ericzhang5231/comments/212741.htmlhttp://m.tkk7.com/Ericzhang5231/articles/websphereportal.html#Feedback0http://m.tkk7.com/Ericzhang5231/comments/commentRss/212741.htmlhttp://m.tkk7.com/Ericzhang5231/services/trackbacks/212741.htmlChapter 1 Introduce

1.1 Why do we need portal

As Internet dev, business required to integrate various sites into one to supply more comfortable service. However, this generated a smorgasbord look and feel. Security soon became an issue and each site then required authentication, which mean user would endure the frustrating experiencing of logins on a single site with difference name and password. And now many different devices with different attributes such as desktops, mobile phones, and palm pilots are needed to access into business sys.

Portals help today's business address the Internet challenges. It helps programmers focus on developing the business functionality by letting the portal manage the look and feel, personalization, content management, and security. It allows users to integrate different applications from disparate locations and enables them to seamlessly exchange information. Each user can create a personalized device-independent "desktop" with a consistent look and feel by suing drag and drop components.

1.2 IBM WebSphere Family

IBM WebSphere is made up of three components: foundation and tools, reach and user experience or business portals, and business integration.

1.3 What is WebSphere Portal?

1.3.1 The User Experience

Each user can create his or her own portal pages and customize the content and look and feel of these pages. They can add functionality to their pages through portlets, which are portal app. Based on their permissions, users can choose for each page or set of pages their own themes, skins, and layout.

Themes: define the fonts, colors, spacing, and other look-and-feel components of the page.

Skins: comprise title bars, borders, shadows, etc. that surround the portlets.

1.3.1.1 Content Management

WP provides the user the ability to syndicate content or to get up-to-date personalized and filtered content and services from multiple subscriber source such as Financial Times and others. Also support RSS format. IBM Lotus Workpalce Web Content Management (ILWWCM) provides Web Content Management system. ILWWCM is designed for organizations with user that publish content to a web site, whether it is marketing updating product information or human resources updating information on benefits. Content can be published through templates or forms and consists of images, word doc, excel, html and so forth.

1.3.1.2 Document management

WebSphere Portal Document Manager (PDM) provides user the ability to view, add, edit, and delete documents within a common folder hierarchy that can be user-defined. Documents can be made available immediately or to go through an approval process using a defined workflow model.

1.3.1.3 Search

Use of the search capabilities is made through the search portlet, the WP crawler, or the document indexer. Enhanced search is also provided through IBM Lotus Extended Search and DV2 Information Integrator.

1.3.1.4 Collaboration

WebSphere Portal provides complete support for collaboration through the Notes, Domino, and Domino Web Access portlets. These portlets provide access to collaboration app that use Lotus Notes databases on Domino servers such as Mail, Calendar, To Do, Notes View, TeamRoom, and Discussion. Additional portlets are available that integrate Domino.doc, Discovery Server, QuickPlace, and Sametime.

WP offers Collaboration Center, which is a framework that integrates People Finder, the Web Conference Center, QuickPlace, and Sametime.

1.3.1.5 Personalization

  1. Creating a user profile by collecting user information and classifying it into segments;
  2. Creating models for the content that defines it by its attributes. For instance, a content model might contain product name, price, and age segment;
  3. Matching the user segment to the content on the basis of any combination of filtering, rules, or recommendation engine.

The personalization rules are referenced in the portlets. They are created using web-based tools. Another method provided to match site visitors with content is through the recommendation engine. The recommendation engine uses statistical techniques to identify groups of users with similar interests. WebSphere Portal also provides campaign management tools, which enable a business goal to be reached by defining and executing a set of business rules.

1.3.1.6 Performance

WebSphere Portal creates logs that feed into the IBM Tivoli Web Site Analyzer. The Web Site analyzer will analyze the data and report metric in both graphic and text formats so that you can determine the effectiveness of you web site and focus on areas to improve it.

1.3.2 The Developer Experience

1.3.2.1 Portlets communication

  1. Sending information through a portlet action and a portlet message. (Simply speaking, one portlet create a portlet action and encode it into the URL that is used for displaying another portlet. Upon clicking the URL, an action listener is called and then a portlet message is sent to another portlet with the needed parameters)
  2. WP provides cooperative portlets, which can be "Click-2-Action" or "wired", to pass messages independently. Portlet express their desire to interact with a broker who at runtime matches data types between the source of one portlet with the action of another portlet. If a match occurs with a "Click-2-Action portlet", a pop-up menu appears on the page that will enable the user to transfer the data to the connected portlet. If the portlet is wired by an administrator, then the data will be exchanged automatically as opposed to having to wait for the user to click the pop-up menu.

1.3.2.2 Through the portlet API, WebSphere Portal provides programmers the ability to

           dynamically discover available services.

1.3.2.3 WP server supports the JAAS architecture

1.3.2.4 WP provides developers with support for Web Service for Remote Portlets

(WSRP)

1.3.2.5 WebSphere Portal Application Integrator (WPAI) support ability to access

          Enterprise Application Systems such as SAP, PeopleSoft, Siebel

1.3.2.2 The Administrator Experience

WebSphere Portal enables an administrator to have complete dynamic control over user access right for every portal resource including portlets, pages, and user groups. The permission are defined by the user role. WP has defined roles (Administrator, Security Administrator, Delegator, Manager, Editor, Privileged User, and User).

If a role is assigned to a page, group, or folder, then resource below the parent inherit the permissions unless they are specifically blocked. A user can also delegate his or her role to other users.

WebSphere Portal Member Services provides administration services through portlets for creating, updating, and deleting portal user and for managing their access rights. These services are provided at both the user and group levels. Users can be members of one or more groups and groups can be members of other groups.

User profile information can be supported in an LDAP and/or a database.

WebSphere Portal support form-based authentication (HTML user prompted form) through WAS or a third-party authentication server such as Tivoli Access Manager or Netegrity Siteminder.

1.3.3 WebSphere Portal Architecture



]]>
Recommand a websitehttp://m.tkk7.com/Ericzhang5231/articles/210776.htmlEric-1001cEric-1001cThu, 26 Jun 2008 03:32:00 GMThttp://m.tkk7.com/Ericzhang5231/articles/210776.htmlhttp://m.tkk7.com/Ericzhang5231/comments/210776.htmlhttp://m.tkk7.com/Ericzhang5231/articles/210776.html#Feedback0http://m.tkk7.com/Ericzhang5231/comments/commentRss/210776.htmlhttp://m.tkk7.com/Ericzhang5231/services/trackbacks/210776.html褰卞儚 http://parandroid.com/

]]>
主站蜘蛛池模板: 一级毛片正片免费视频手机看| 久久精品国产亚洲av高清漫画| 中文无码亚洲精品字幕| 8x网站免费入口在线观看| 亚洲av综合av一区| 国产国产人免费人成成免视频| 亚洲一区日韩高清中文字幕亚洲| 狼色精品人妻在线视频免费| 国产美女做a免费视频软件| 日韩亚洲翔田千里在线| 亚洲av午夜精品一区二区三区| 国产精品日本亚洲777| 亚洲日本在线观看视频| 国产做国产爱免费视频| 亚洲va久久久噜噜噜久久| 青青草原1769久久免费播放| 99久久精品国产亚洲| 国产香蕉免费精品视频| 亚洲国产欧美国产综合一区| 亚洲免费日韩无码系列 | 亚洲精品国产精品乱码不卞| a免费毛片在线播放| 亚洲成AV人在线播放无码| 亚洲黄色免费在线观看| 亚洲大成色www永久网址| 亚洲高清成人一区二区三区| 中国一级特黄的片子免费| 99久久精品国产亚洲| 国产高清在线精品免费软件| 一区二区三区免费看| 久久亚洲熟女cc98cm| 国产成人免费网站在线观看| 在线成人精品国产区免费| 亚洲 欧洲 视频 伦小说| 免费成人av电影| 免费无码VA一区二区三区| 亚洲午夜无码久久久久小说 | 九九九国产精品成人免费视频| 国产亚洲精品福利在线无卡一| 最近中文字幕大全免费视频| 狼人大香伊蕉国产WWW亚洲|