锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲youjizz,久久精品国产亚洲Aⅴ蜜臀色欲,亚洲国产精品综合久久网络http://www.tkk7.com/majianan/<br> <div align=center > <img width=200 height=50 src="http://www.tkk7.com/images/blogjava_net/majianan/14891/r_5858488902000cu2.gif" name="welcome"> </div> <br> <script language="JavaScript"> <!-- Begin text = "浜烘湰鏄漢錛屼笉蹇呭埢鎰忓幓鍋氫漢錛涗笘鏈槸涓栵紝鏃犻』綺懼績鍘誨涓栵紱鑷劧鐨勬墠鏄揩涔愮殑銆?; color1 = "blue"; color2 = "red"; fontsize = "2"; speed = 100; i = 0; if (navigator.appName == "Netscape") { document.write("<layer id=a visibility=show></layer><br><br><br>"); } else { document.write("<div id=a></div>"); } function changeCharColor() { if (navigator.appName == "Netscape") { document.a.document.write("<center><font face=arial size =" + fontsize + "><font color=" + color1 + ">"); for (var j = 0; j < text.length; j++) { if(j == i) { document.a.document.write("<font face=arial color=" + color2 + ">" + Text.charAt(i) + "</font>"); } else { document.a.document.write(text.charAt(j)); } } document.a.document.write('</font></font></center>'); document.a.document.close(); } if (navigator.appName == "Microsoft Internet Explorer") { str = "<center><font face=arial size=" + fontsize + "><font color=" + color1 + ">"; for (var j = 0; j < text.length; j++) { if( j == i) { str += "<font face=arial color=" + color2 + ">" + text.charAt(i) + "</font>"; } else { str += text.charAt(j); } } str += "</font></font></center>"; a.innerHTML = str; } (i == text.length) ? i=0 : i++; } setInterval("changeCharColor()", speed); // End --> </script> zh-cnSat, 10 May 2025 18:50:45 GMTSat, 10 May 2025 18:50:45 GMT60琛ㄦ牸鍒楀榧犳爣鎷栧姩http://www.tkk7.com/majianan/archive/2009/03/03/257541.html椹槈妤?/dc:creator>椹槈妤?/author>Tue, 03 Mar 2009 06:04:00 GMThttp://www.tkk7.com/majianan/archive/2009/03/03/257541.htmlhttp://www.tkk7.com/majianan/comments/257541.htmlhttp://www.tkk7.com/majianan/archive/2009/03/03/257541.html#Feedback2http://www.tkk7.com/majianan/comments/commentRss/257541.htmlhttp://www.tkk7.com/majianan/services/trackbacks/257541.html琛ㄦ牸鍒楀榧犳爣鎷栧姩

椹槈妤?/a>    2009-03-03

 

鍏卞悓瀛︿範錛屾榪庤漿杞姐傝漿杞借娉ㄦ槑鍦板潃銆?/span>http://blog.csdn.net/majianan/archive/2009/03/03/3952649.aspx銆戯紝璋㈣阿O(∩_∩)O錛?/span>

 

/******************************************
 * 娌℃湁鐗堟潈 浠繪剰淇敼 鏀瑰ソ浜嗚鍙戠粰鎴戜竴浠?O(∩_∩)O
 * Email錛?a href="mailto:jianan.ma@gmail.com" mce_href="mailto:jianan.ma@gmail.com">jianan.ma@gmail.com
 * QQ:52524611
 *******************************************/

 鍔熻兘錛?錛夐紶鏍囨嫋鍔ㄥ垪瀹姐?錛夊弻鍑繪仮澶嶅垪瀹?/p>

 

 

 

 

 

 

 



]]>
銆怞avaScript銆戞偓嫻獥鍙?/title><link>http://www.tkk7.com/majianan/archive/2009/01/13/251029.html</link><dc:creator>椹槈妤?/dc:creator><author>椹槈妤?/author><pubDate>Tue, 13 Jan 2009 00:16:00 GMT</pubDate><guid>http://www.tkk7.com/majianan/archive/2009/01/13/251029.html</guid><wfw:comment>http://www.tkk7.com/majianan/comments/251029.html</wfw:comment><comments>http://www.tkk7.com/majianan/archive/2009/01/13/251029.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/majianan/comments/commentRss/251029.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/majianan/services/trackbacks/251029.html</trackback:ping><description><![CDATA[<span style="font-family: Verdana"> <p align="center"><span style="font-family: Verdana"><a >銆怞avaScript銆戞偓嫻獥鍙?/a></span></p> <p align="center"><span style="font-family: Verdana"><a >椹槈妤?/a> 2009-01-13</span></p> <p align="left"><span style="font-family: Verdana"><br /> </p> <p><font face="Arial">鍏卞悓瀛︿範錛屾榪庤漿杞姐傝漿杞借娉ㄦ槑鍦板潃銆?/font><font face="Arial"><a >http://blog.csdn.net/majianan/archive/2009/01/11/3754521.aspx</a></font><font face="Arial">銆戯紝璋㈣阿O(∩_∩)O錛?/font></p> <p align="left"><br /> 涓昏鏄痺indow.onscroll鐨勮繍鐢?br /> <br /> 鏁堟灉濡傚浘錛?/span></p> <span style="font-family: Verdana"> <p align="left"><br /> <br /> <img height="383" alt="" src="http://www.tkk7.com/images/blogjava_net/majianan/18165/o_scroll.jpg" width="609" border="0" /><br /> <br /> 浠g爜濡備笅錛?br /> </p> <p align="center"></span></p> <div align="left"> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-family: Verdana"><span style="color: #0000ff"><</span><span style="color: #800000">html</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">    </span></span><span style="font-family: Verdana"><span style="color: #0000ff"><</span><span style="color: #800000">head</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">        </span></span><span style="font-family: Verdana"><span style="color: #0000ff"><</span><span style="color: #800000">title</span><span style="color: #0000ff">></span><span style="color: #000000">鎮誕紿楀彛紺轟緥</span><span style="color: #0000ff"></</span><span style="color: #800000">title</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">        </span></span><span style="font-family: Verdana"><span style="color: #0000ff"><</span><span style="color: #800000">script </span><span style="color: #ff0000">type</span><span style="color: #0000ff">="text/javascript"</span><span style="color: #0000ff">></span></span><span style="color: #000000; background-color: #f5f5f5"><br /> <span style="font-family: Verdana">            window.onscroll </span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> </span><span style="color: #0000ff; background-color: #f5f5f5">function</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5"> () {<br />                 </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> div </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> document.getElementById(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">divSuspended</span><span style="color: #000000; background-color: #f5f5f5">"</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5">);<br />                 div.style.top </span><span style="color: #000000; background-color: #f5f5f5">=</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5"> document.body.scrollTop;<br />             }<br />             window.onresize </span><span style="color: #000000; background-color: #f5f5f5">=</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5"> window.onscroll;<br />             </span><span style="color: #0000ff; background-color: #f5f5f5">function</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5"> init(){<br />                 </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> df </span><span style="color: #000000; background-color: #f5f5f5">=</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5"> document.createDocumentFragment();<br />                 </span><span style="color: #0000ff; background-color: #f5f5f5">for</span><span style="color: #000000; background-color: #f5f5f5">(</span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> i</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">0</span><span style="color: #000000; background-color: #f5f5f5">;i</span><span style="color: #000000; background-color: #f5f5f5"><</span><span style="color: #000000; background-color: #f5f5f5">20</span><span style="color: #000000; background-color: #f5f5f5">;i</span><span style="color: #000000; background-color: #f5f5f5">++</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5">){<br />                     </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> p </span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5"> document.createElement(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">p</span><span style="color: #000000; background-color: #f5f5f5">"</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5">);<br />                     p.appendChild(document.createTextNode(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5"> Line </span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">+</span></span><span style="font-family: Verdana"><span style="color: #000000; background-color: #f5f5f5">i));<br />                     df.appendChild(p);<br />                 }<br />                 document.body.appendChild(df);<br />                 window.onscroll();<br />             }<br />         </span><span style="color: #0000ff"></</span><span style="color: #800000">script</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">    </span></span><span style="font-family: Verdana"><span style="color: #0000ff"></</span><span style="color: #800000">head</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">    </span></span><span style="font-family: Verdana"><span style="color: #0000ff"><</span><span style="color: #800000">body </span><span style="color: #ff0000">onload</span><span style="color: #0000ff">="init()"</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">         </span></span><span style="font-family: Verdana"><span style="color: #0000ff"><</span><span style="color: #800000">p</span><span style="color: #0000ff">></span><span style="color: #000000">Try scrolling this window.</span><span style="color: #0000ff"></</span><span style="color: #800000">p</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">         </span></span><span style="font-family: Verdana"><span style="color: #0000ff"><</span><span style="color: #800000">div </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="divSuspended"</span><span style="color: #ff0000"> style</span><span style="color: #0000ff">="position: absolute; buttom: 0px; right: 0px; color: #cccccc; width: 150px; height: 30px; background-color: navy"</span><span style="color: #0000ff">></span><span style="color: #000000">榪欐槸鎮誕紿楀彛</span><span style="color: #0000ff"></</span><span style="color: #800000">div</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> <span style="font-family: Verdana">    </span></span><span style="font-family: Verdana"><span style="color: #0000ff"></</span><span style="color: #800000">body</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> </span><span style="font-family: Verdana"><span style="color: #0000ff"></</span><span style="color: #800000">html</span><span style="color: #0000ff">></span></span><span style="color: #000000"><br /> </span></div> </div> <p align="left"><br />  </p> </span> <img src ="http://www.tkk7.com/majianan/aggbug/251029.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/majianan/" target="_blank">椹槈妤?/a> 2009-01-13 08:16 <a href="http://www.tkk7.com/majianan/archive/2009/01/13/251029.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆怞avaScript銆戝垪琛紙Select錛夐夐」錛圤ption錛夌殑縐誨姩錛堜笂涓嬪乏鍙籌級http://www.tkk7.com/majianan/archive/2009/01/11/250894.html椹槈妤?/dc:creator>椹槈妤?/author>Sun, 11 Jan 2009 14:58:00 GMThttp://www.tkk7.com/majianan/archive/2009/01/11/250894.htmlhttp://www.tkk7.com/majianan/comments/250894.htmlhttp://www.tkk7.com/majianan/archive/2009/01/11/250894.html#Feedback0http://www.tkk7.com/majianan/comments/commentRss/250894.htmlhttp://www.tkk7.com/majianan/services/trackbacks/250894.html 

 銆怞avaScript銆戝垪琛紙Select錛夐夐」錛圤ption錛夌殑縐誨姩錛堜笂涓嬪乏鍙籌級

椹槈妤?nbsp;   2009-1-11

鍏卞悓瀛︿範錛屾榪庤漿杞姐傝漿杞借娉ㄦ槑鍦板潃銆?/span>http://blog.csdn.net/majianan/archive/2009/01/11/3754521.aspx銆戯紝璋㈣阿O(∩_∩)O錛?/span>

瀵廣?/span>銆怞avaScript銆戝垪琛ㄥ厓绱犱笂涓嬪乏鍙崇Щ鍔細Select鍜孫ption鐨勫簲鐢?/span>銆嬩腑鐨勬柟娉曡繘琛屼簡浼樺寲銆?/span>

1.浣跨敤appendChild錛堬級鏂規硶浼樺寲宸﹀彸縐誨姩鍑芥暟moveRight錛堬級

2.浣跨敤insertBefore錛堬級鏂規硶浼樺寲涓婁笅縐誨姩鍑芥暟moveUp錛堬級

3.淇敼鍚屾椂閫変腑澶氶」涓婁笅縐誨姩涓嶆甯哥殑Bug

 

鍔熻兘濡備笅錛?/span>

鏀寔涓嬈¢変腑澶氶」鍦ㄥ乏鍙沖垪琛ㄤ腑鏉ュ洖縐誨姩

 



 

 

 

浠g爜濡備笅錛?/span>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 
<HEAD>
  
<TITLE> New Document </TITLE>
  
<META NAME="Author" CONTENT="majianan">
<SCRIPT language=javascript>
    
var currentSel = null;
    
function
 setButton(obj){        
        
if(obj.length==0return
;
        currentSel 
=
 obj;
        
if(obj.id=="leftSel"
){
            document.getElementById(
"btnLeft").disabled = true
;
            document.getElementById(
"btnRight").disabled = false
;                
            reSelect(document.getElementById(
"rightSel"
));            
        }
else
{
            document.getElementById(
"btnLeft").disabled = false
;
            document.getElementById(
"btnRight").disabled = true
;               
            reSelect(document.getElementById(
"leftSel"
));                
        }       
    }

      
function
 move(){
          
if(arguments.length==1
){
              moveUp(arguments[
0
]);
          }
else if(arguments.length==2
){
              moveRight(arguments[
0],arguments[1
]);
          }
      }

      
function
 moveUp(direction){
          
if(currentSel == nullreturn
;
          
if(direction){//up

            if (currentSel.selectedIndex > 0) {  
                
for(var i=0;i<currentSel.length;i++
){
                    
if
(currentSel[i].selected){
                        
var oOption =
 currentSel.options[i];
                        
var oPrevOption = currentSel.options[i---1
];
                        currentSel.insertBefore(oOption, oPrevOption);
                    }
                }                
            } 
          }
else{//down

            for(var i=currentSel.length-1;i>=0;i--){
                
if
(currentSel[i].selected){
                    
if(i==currentSel.length-1return
;
                    
var oOption =
 currentSel.options[i];
                    
var oNextOption = currentSel.options[i+1
];
                    currentSel.insertBefore(oNextOption, oOption);                        
                }
            }
          }
      }

    
function
 moveRight(src,des){
        
if(src.selectedIndex==-1
){
            alert(
"Please select first!"
);
            
return
;
        }
        
for(var i=0;i<src.length;i++
){
            
if
(src[i].selected){
                des.appendChild(src.options[i
--
]);
            }
        }
        setButton(des);
    }
    
    
function
 reSelect(obj){
        
for(var i=0; i<obj.length; i++
){
            
if(obj[i].selected) obj[i].selected = false
;
        }
    }
    
</SCRIPT>


 
</HEAD>

 
<BODY>
  
<form id="form1">
      
<table width="40%" align="center">
          
<tr>
              
<td>
                  
<input type="button" value=" Up " id="btnUp" onClick="move(true);" style="width:65"/>
                
<br />
                
<input type="button" value=" Down " id="btnDowm" onClick="move(false);" style="width:65" />                
              
</td>

              
<td>
                  
<select multiple id="leftSel" onclick="setButton(this)" ondblclick="document.getElementById('btnRight').click()" style="height:200px;width:100px;">

                    
<option value="1">Java</option>
                    
<option value="2">JavaScript</option>
                    
<option value="3">C++</option>
                    
<option value="4">HTML</option>
                
</select>
            
</td>
            
<td>
                
<input type="button" value=" >> " id="btnRight" onClick="move(document.getElementById('leftSel'),document.getElementById('rightSel'));" style="width:65" />
                
<br />
                
<input type="button" value=" << " id="btnLeft" onClick="move(document.getElementById('rightSel'),document.getElementById('leftSel'));" style="width:65" />
                
</td>
                
<td>
                    
<select multiple id="rightSel" onclick="setButton(this)"  ondblclick="document.getElementById('btnLeft').click()" style="height:200px;width:100px;" >
 
                    
<option value="5">CSS</option>
                    
<option value="6">.Net</option>
                    
</select>
                
</td>
            
</tr>
        
</table>
    
</form>
 
</BODY>
</HTML>



]]>
銆愬師銆慍SS+JavaScript 瀹炵幇TabPane欏電http://www.tkk7.com/majianan/archive/2008/12/30/249173.html椹槈妤?/dc:creator>椹槈妤?/author>Tue, 30 Dec 2008 06:35:00 GMThttp://www.tkk7.com/majianan/archive/2008/12/30/249173.htmlhttp://www.tkk7.com/majianan/comments/249173.htmlhttp://www.tkk7.com/majianan/archive/2008/12/30/249173.html#Feedback2http://www.tkk7.com/majianan/comments/commentRss/249173.htmlhttp://www.tkk7.com/majianan/services/trackbacks/249173.html闃呰鍏ㄦ枃

]]>
銆愬師銆戙怞avaScript銆戝垪琛ㄥ厓绱犱笂涓嬪乏鍙崇Щ鍔細Select鍜孫ption鐨勫簲鐢?/title><link>http://www.tkk7.com/majianan/archive/2008/12/26/248462.html</link><dc:creator>椹槈妤?/dc:creator><author>椹槈妤?/author><pubDate>Fri, 26 Dec 2008 07:20:00 GMT</pubDate><guid>http://www.tkk7.com/majianan/archive/2008/12/26/248462.html</guid><wfw:comment>http://www.tkk7.com/majianan/comments/248462.html</wfw:comment><comments>http://www.tkk7.com/majianan/archive/2008/12/26/248462.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/majianan/comments/commentRss/248462.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/majianan/services/trackbacks/248462.html</trackback:ping><description><![CDATA[     鎽樿:  銆怞avaScript銆戝垪琛ㄥ厓绱犱笂涓嬪乏鍙崇Щ鍔細Select鍜孫ption鐨勫簲鐢?椹槈妤?nbsp;   2008-12-26 鍏卞悓瀛︿範錛屾榪庤漿杞姐傝漿杞借娉ㄦ槑鍦板潃銆恏ttp://blog.csdn.net/majianan/archive/2008/12/26/3614255.aspx銆戯紝璋㈣阿O(∩_∩)O錛?   ...  <a href='http://www.tkk7.com/majianan/archive/2008/12/26/248462.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/majianan/aggbug/248462.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/majianan/" target="_blank">椹槈妤?/a> 2008-12-26 15:20 <a href="http://www.tkk7.com/majianan/archive/2008/12/26/248462.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JavaScript涓瓧絎︿覆榪炴帴鎬ц兘浼樺寲http://www.tkk7.com/majianan/archive/2008/12/20/247417.html椹槈妤?/dc:creator>椹槈妤?/author>Fri, 19 Dec 2008 16:09:00 GMThttp://www.tkk7.com/majianan/archive/2008/12/20/247417.htmlhttp://www.tkk7.com/majianan/comments/247417.htmlhttp://www.tkk7.com/majianan/archive/2008/12/20/247417.html#Feedback0http://www.tkk7.com/majianan/comments/commentRss/247417.htmlhttp://www.tkk7.com/majianan/services/trackbacks/247417.htmlJavaScript涓瓧絎︿覆榪炴帴鎬ц兘浼樺寲

        -- JavaScript 瀛︿範絎旇

椹槈妤?/span>    2008-12-19

 

var str = "hello"
str 
+= " world"

 

鍚庡彴鎵鍋氬伐浣滐細

1錛夊垱寤哄瓨鍌?"hello" 鐨勫瓧絎︿覆錛屼笖浣?str 鎸囧悜瀹冦?/span>

2錛夊垱寤哄瓨鍌?"world" 鐨勫瓧絎︿覆銆?/span>

3錛夊垱寤哄瓨鍌ㄧ粨鏋滅殑瀛楃涓層?/span>

4錛夊皢 str 涓殑褰撳墠鍐呭澶嶅埗鍒扮粨鏋滃瓧絎︿覆涓?/span>

5錛夋妸 world 澶嶅埗鍒扮粨鏋滃瓧絎︿覆涓?/span>

6錛夋洿鏂?str 錛屼嬌 str 鎸囧悜緇撴灉瀛楃涓層?/span>

 

姣忔嫾鎺ヤ竴嬈″瓧絎︿覆灝卞驚鐜噸澶?錛墌6錛夛紝濡傛灉閲嶅鎴愮櫨涓婂崈嬈″垯浼氶潪甯告秷鑰楄祫婧愶紝褰卞搷鎬ц兘銆?/span>

 

瑙e喅鏂規硶錛?/span>

浣跨敤 Array 瀵硅薄瀛樺偍瀛楃涓詫紝涔嬪悗浣跨敤 join錛堬級鏂規硶杈撳嚭緇撴灉銆?/span>

浠跨収 Java 涓殑 StringBuffer 綾匯?/span>

 

    function StringBuffer(){ 
        
this._strings = new
 Array; 
    } 
    StringBuffer.prototype.append 
= function
 (str){ 
        
this
._strings.push(str); 
    } 
    StringBuffer.prototype.toString 
= function
 (){ 
        
return this._strings.join(""
); 
    } 

 

嫻嬭瘯鎬ц兘錛?/span>

浠g爜1錛氫嬌鐢?"+=" 鎷兼帴瀛楃涓?/span>

 

var d = new Date(); 
var str = ""

for(var i=0;i<10000;i++
){ 
    str 
+= "test"



var d2 = new
 Date(); 
document.writeln(d2.getTime()
-d.getTime()); 

 

浠g爜2錛氫嬌鐢?StringBuffer

 

var d = new Date(); 
var str = new
 StringBuffer(); 
for(var i=0;i<10000;i++
){ 
    str.append(
"test"
); 

var res =
 str.toString(); 
var d2 = new
 Date(); 
document.writeln(d2.getTime()
-d.getTime()); 

 

浠庡嬈℃祴璇曠粨鏋滅湅鏉ワ紝浣跨敤StringBuffer 鍙互鑺傜渷50%浠ヤ笂鐨勬椂闂淬?/span>



]]>
銆怞avaScript銆憇lice錛堬級銆乻ubstring錛堬級銆乻ubstr錛堬級鐨勫尯鍒?/title><link>http://www.tkk7.com/majianan/archive/2008/12/16/246579.html</link><dc:creator>椹槈妤?/dc:creator><author>椹槈妤?/author><pubDate>Tue, 16 Dec 2008 03:00:00 GMT</pubDate><guid>http://www.tkk7.com/majianan/archive/2008/12/16/246579.html</guid><wfw:comment>http://www.tkk7.com/majianan/comments/246579.html</wfw:comment><comments>http://www.tkk7.com/majianan/archive/2008/12/16/246579.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/majianan/comments/commentRss/246579.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/majianan/services/trackbacks/246579.html</trackback:ping><description><![CDATA[<p align="center"><span style="font-family: Verdana">銆怞avaScript銆憇lice錛堬級銆乻ubstring錛堬級銆乻ubstr錛堬級鐨勫尯鍒?/span></p> <p align="center"><a ><span style="font-family: Verdana">椹槈妤?/span></a><span style="font-family: Verdana">    2008-12-16</span></p> <p> </p> <p><span style="font-family: Verdana">JavaScript涓璖tring 瀵硅薄鐨剆lice錛堬級銆乻ubstring錛堬級銆乻ubstr錛堬級鏂規硶閮借兘鎻愬彇瀛楃涓茬殑涓閮ㄥ垎錛屼絾浣跨敤鏃舵湁鎵鍖哄埆銆?/span></p> <p><span style="font-family: Verdana"> </span></p> <ul> <li style="font-size: 11pt"><span style="font-family: Verdana"><strong style="font-size: 12pt; color: #333399">stringObject.slice錛坰tartIndex錛宔ndIndex錛?/strong></span> </li> </ul> <p><span style="font-family: Verdana">榪斿洖瀛楃涓?stringObject 浠?startIndex 寮濮嬶紙鍖呮嫭 startIndex 錛夊埌 endIndex 緇撴潫錛堜笉鍖呮嫭 endIndex 錛変負姝㈢殑鎵鏈夊瓧絎︺?/span></p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>1錛?/strong></font>鍙傛暟 endIndex 鍙夛紝濡傛灉娌℃湁鎸囧畾錛屽垯榛樿涓哄瓧絎︿覆鐨勯暱搴?stringObject.length 銆?/span><span></p> </blockquote> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff">var</span><span style="color: #000000"> stringObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">hello world!</span><span style="color: #000000">"</span></span><span style="font-family: Verdana"><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  alert(stringObject.slice(</span><span style="color: #000000">3</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo world! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.slice(</span><span style="color: #000000">3</span><span style="color: #000000">,stringObject.length)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo world!</span></span></div> <p class="highlighter"></span><span style="font-family: Verdana"><font color="#ff0000">銆愭敞1銆?/font>瀛楃涓蹭腑絎竴涓瓧絎︾殑浣嶇疆鏄粠銆?銆戝紑濮嬬殑錛屾渶鍚庝竴涓瓧絎︾殑浣嶇疆涓恒恠tringObject.length-1銆戯紝鎵浠lice錛堬級鏂規硶榪斿洖鐨勫瓧絎︿覆涓嶅寘鎷琫ndIndex浣嶇疆鐨勫瓧絎︺?/span></p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>2錛?/strong></font>startIndex 銆乪ndIndex 鍙互鏄礋鏁般傚鏋滀負璐燂紝鍒欒〃紺轟粠瀛楃涓插熬閮ㄥ紑濮嬬畻璧楓傚嵆-1琛ㄧず瀛楃涓叉渶鍚庝竴涓瓧絎︺?/span><span></p> </blockquote> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff">var</span><span style="color: #000000"> stringObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">hello world!</span><span style="color: #000000">"</span></span><span style="font-family: Verdana"><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  alert(stringObject.slice(</span><span style="color: #000000">-</span><span style="color: #000000">3</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> ld! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.slice(</span><span style="color: #000000">-</span><span style="color: #000000">3</span><span style="color: #000000">,stringObject.length)); </span><span style="color: #008000">//</span><span style="color: #008000"> ld! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.slice(</span><span style="color: #000000">-</span><span style="color: #000000">3</span><span style="color: #000000">,</span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> ld</span></span></div> <p class="highlighter"></span> <span style="font-family: Verdana"><font color="#ff0000">銆愭敞2銆?/font>鍚堢悊榪愮敤璐熸暟鍙互綆鍖栦唬鐮?/span></p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>3錛?/strong></font>startIndex銆乪ndIndex 閮芥槸鍙夌殑錛屽鏋滈兘涓嶅~鍒欒繑鍥炲瓧絎︿覆 stringObject 鐨勫叏閮紝絳夊悓浜巗lice(0)</span><font color="#3366ff"><span></p> </blockquote> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff">var</span><span style="color: #000000"> stringObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">hello world!</span><span style="color: #000000">"</span></span><span style="font-family: Verdana"><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  alert(stringObject.slice()); </span><span style="color: #008000">//</span><span style="color: #008000"> hello world! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.slice(</span><span style="color: #000000">0</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> hello world!</span></span></div> <p class="highlighter"></span> </p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>4錛?/strong></font><font color="#000000">濡傛灉startIndex銆乪ndIndex 鐩哥瓑錛屽垯榪斿洖絀轟覆</font></span></p> </blockquote> <p></font><span style="font-family: Verdana"><font color="#ff0000">銆愭敞3銆?/font>String.slice() 涓?Array.slice() 鐩鎬技</span></p> <p><span style="font-family: Verdana"> </span></p> <p> </p> <ul> <li><span style="font-family: Verdana"><strong style="font-size: 12pt; color: #333399">stringObject.substring(startIndex銆乪ndIndex)</strong></span> </li> </ul> <p><span style="font-family: Verdana">榪斿洖瀛楃涓?stringObject 浠?startIndex 寮濮嬶紙鍖呮嫭 startIndex 錛夊埌 endIndex 緇撴潫錛堜笉鍖呮嫭 endIndex 錛変負姝㈢殑鎵鏈夊瓧絎︺?/span></p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>1錛?/strong></font>startIndex  鏄竴涓潪璐熺殑鏁存暟錛屽繀欏誨~鍐欍俥ndIndex 鏄竴涓潪璐熸暣鏁幫紝鍙夈傚鏋滄病鏈夛紝鍒欓粯璁や負瀛楃涓茬殑闀垮害stringObject.length 銆?/span><span></p> </blockquote> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff">var</span><span style="color: #000000"> stringObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">hello world!</span><span style="color: #000000">"</span></span><span style="font-family: Verdana"><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  alert(stringObject.substring(</span><span style="color: #000000">3</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo world! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.substring(</span><span style="color: #000000">3</span><span style="color: #000000">,stringObject.length)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo world! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.substring(</span><span style="color: #000000">3</span><span style="color: #000000">,</span><span style="color: #000000">7</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo w,絀烘牸涔熺畻鍦ㄥ唴[l][o][ ][w]</span></span></div> <p class="highlighter"></span> </p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>2錛?/strong></font>濡傛灉startIndex銆乪ndIndex 鐩哥瓑錛屽垯榪斿洖絀轟覆銆傚鏋渟tartIndex 姣?endIndex 澶э紝鍒欐彁鍙栧瓙涓蹭箣鍓嶏紝璋冩崲涓や釜鍙傛暟銆傚嵆stringObject.substring錛坰tartIndex錛宔ndIndex錛夌瓑鍚屼簬stringObject.substring錛坋ndIndex錛宻tartIndex錛?/span><span></p> </blockquote> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff">var</span><span style="color: #000000"> stringObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">hello world!</span><span style="color: #000000">"</span></span><span style="font-family: Verdana"><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  alert(stringObject.substring(</span><span style="color: #000000">3</span><span style="color: #000000">,</span><span style="color: #000000">3</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> 絀轟覆 </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.substring(</span><span style="color: #000000">3</span><span style="color: #000000">,</span><span style="color: #000000">7</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo w </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.substring(</span><span style="color: #000000">7</span><span style="color: #000000">,</span><span style="color: #000000">3</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo w</span></span></div> <p class="highlighter"></span> <span style="font-family: Verdana"><font color="#ff0000">銆愭敞4銆?/font><font color="#000000">涓?/font>substring錛堬級鐩告瘮錛宻lice錛堬級鏇寸伒媧伙紝鍙互鎺ユ敹璐熷弬鏁般?/span></p> <p><span style="font-family: Verdana"> </span></p> <p><span style="font-family: Verdana"> </span></p> <ul> <li><span style="font-family: Verdana"><strong style="font-size: 12pt; color: #333399">stringObject.substr錛坰tartIndex錛宭ength錛?/strong></span> </li> </ul> <p><span style="font-family: Verdana">榪斿洖瀛楃涓?stringObject 浠?startIndex 寮濮嬶紙鍖呮嫭 startIndex 錛夋寚瀹氭暟鐩紙length錛夌殑瀛楃瀛楃銆?/span></p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>1錛?/strong></font>startIndex 蹇呴』濉啓錛屽彲浠ユ槸璐熸暟銆傚鏋滀負璐燂紝鍒欒〃紺轟粠瀛楃涓插熬閮ㄥ紑濮嬬畻璧楓傚嵆-1琛ㄧず瀛楃涓叉渶鍚庝竴涓瓧絎︺?/span></p> <p><span style="font-family: Verdana"><font color="#000080"><strong>2錛?/strong></font>鍙傛暟 length 鍙夛紝濡傛灉娌℃湁鎸囧畾錛屽垯榛樿涓哄瓧絎︿覆鐨勯暱搴?stringObject.length 銆?/span><span></p> </blockquote> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff">var</span><span style="color: #000000"> stringObject </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">hello world!</span><span style="color: #000000">"</span></span><span style="font-family: Verdana"><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  alert(stringObject.substr(</span><span style="color: #000000">3</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo world! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.substr(</span><span style="color: #000000">3</span><span style="color: #000000">,stringObject.length)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo world! </span></span><span style="color: #008000"><br /> <span style="font-family: Verdana"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="font-family: Verdana"><span style="color: #000000">  alert(stringObject.substr(</span><span style="color: #000000">3</span><span style="color: #000000">,</span><span style="color: #000000">4</span><span style="color: #000000">)); </span><span style="color: #008000">//</span><span style="color: #008000"> lo w</span></span></div> <p class="highlighter"></span> </p> <blockquote dir="ltr" style="margin-right: 0px"> <p><span style="font-family: Verdana"><font color="#000080"><strong>3錛?/strong></font>substr錛堬級鍙互浠f浛slice錛堬級鍜宻ubstring錛堬級鏉ヤ嬌鐢紝浠庝笂闈唬鐮佺湅鍑?<font color="#000000">stringObject.substr(3,4) 絳夊悓浜巗tringObject.substring(3,7)</font></span></p> </blockquote> <p><span style="font-family: Verdana"> </span></p> <span style="font-family: Verdana"><font color="#ff0000">銆愭敞5銆?/font>ECMAscript 娌℃湁瀵硅鏂規硶榪涜鏍囧噯鍖栵紝鍥犳灝介噺灝戜嬌鐢ㄨ鏂規硶銆?/span> <img src ="http://www.tkk7.com/majianan/aggbug/246579.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/majianan/" target="_blank">椹槈妤?/a> 2008-12-16 11:00 <a href="http://www.tkk7.com/majianan/archive/2008/12/16/246579.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愬師鍒涖慍SS+JavaScript 瀹炵幇鑿滃崟鍔熻兘--鏀硅繘鐗?/title><link>http://www.tkk7.com/majianan/archive/2008/12/12/246029.html</link><dc:creator>椹槈妤?/dc:creator><author>椹槈妤?/author><pubDate>Fri, 12 Dec 2008 12:10:00 GMT</pubDate><guid>http://www.tkk7.com/majianan/archive/2008/12/12/246029.html</guid><wfw:comment>http://www.tkk7.com/majianan/comments/246029.html</wfw:comment><comments>http://www.tkk7.com/majianan/archive/2008/12/12/246029.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/majianan/comments/commentRss/246029.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/majianan/services/trackbacks/246029.html</trackback:ping><description><![CDATA[     鎽樿: CSS+JavaScript 瀹炵幇鑿滃崟鍔熻兘--鏀硅繘鐗?椹槈妤?nbsp;  2008-12-08   鍦ㄤ笂涓綃囥奀SS+JavaScript 瀹炵幇鑿滃崟鍔熻兘銆嬮氳繃涓涓狧TML欏甸潰綆鍗曠殑瀹炵幇浜嗚彍鍗曞姛鑳姐備絾鏄疄闄呭紑鍙戝綋涓紝濡傛灉鑿滃崟鏍忔湁寰堝欏癸紝棰戠箒鐨勪慨鏀笻TML錛屼細寰堢箒鐞愶紝涔熷鏄撳嚭閿欍?鏀硅繘鐗堟湰浼樺寲浜嗚繖涓棶棰橈紝閫氳繃綆鍗曠殑Javascript浠g爜灝卞彲浠ュ鍔犺彍鍗曘傚悓鏃朵嬌寰桯TML欏?..  <a href='http://www.tkk7.com/majianan/archive/2008/12/12/246029.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/majianan/aggbug/246029.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/majianan/" target="_blank">椹槈妤?/a> 2008-12-12 20:10 <a href="http://www.tkk7.com/majianan/archive/2008/12/12/246029.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[鍘熷垱]鎵撳嵃鏁村瀷鐨勪簩榪涘埗鏍煎紡http://www.tkk7.com/majianan/archive/2008/03/24/188166.html椹槈妤?/dc:creator>椹槈妤?/author>Mon, 24 Mar 2008 02:51:00 GMThttp://www.tkk7.com/majianan/archive/2008/03/24/188166.htmlhttp://www.tkk7.com/majianan/comments/188166.htmlhttp://www.tkk7.com/majianan/archive/2008/03/24/188166.html#Feedback0http://www.tkk7.com/majianan/comments/commentRss/188166.htmlhttp://www.tkk7.com/majianan/services/trackbacks/188166.html闃呰鍏ㄦ枃

]]>
鏁欎綘瑙e喅闂錛欳ompilation error java.lang.OutOfMemoryError http://www.tkk7.com/majianan/archive/2008/03/19/187181.html椹槈妤?/dc:creator>椹槈妤?/author>Wed, 19 Mar 2008 02:39:00 GMThttp://www.tkk7.com/majianan/archive/2008/03/19/187181.htmlhttp://www.tkk7.com/majianan/comments/187181.htmlhttp://www.tkk7.com/majianan/archive/2008/03/19/187181.html#Feedback1http://www.tkk7.com/majianan/comments/commentRss/187181.htmlhttp://www.tkk7.com/majianan/services/trackbacks/187181.html闃呰鍏ㄦ枃

]]>
Informix 緋葷粺琛紙syscolumns錛変腑瀛楁綾誨瀷錛坈oltype錛夊瓧孌電殑鍚箟http://www.tkk7.com/majianan/archive/2007/10/10/151670.html椹槈妤?/dc:creator>椹槈妤?/author>Wed, 10 Oct 2007 03:33:00 GMThttp://www.tkk7.com/majianan/archive/2007/10/10/151670.htmlhttp://www.tkk7.com/majianan/comments/151670.htmlhttp://www.tkk7.com/majianan/archive/2007/10/10/151670.html#Feedback0http://www.tkk7.com/majianan/comments/commentRss/151670.htmlhttp://www.tkk7.com/majianan/services/trackbacks/151670.html0 = CHAR
1 = SMALLINT
2 = INTEGE R
3 = FLOAT
4 = SMALLFLOAT
5 = DECIMAL
6 = SERIAL *
7 = DATE
8 = MONEY
9 = NULL
10 = DATETIME
11 = BYTE
12 = TEXT
13 = VARCHAR
14 = INTERVAL
15 = NCHAR
16 = NVARCHAR
17 = INT8
18 = SERIAL8 *
19 = SET
20 = MULTISET
21 = LIST
22 = Unnamed ROW
40 = Variable-length opaque type (LVARCHAR)
4118 = Named ROW

濡傛灉錛屾煇瀛楁瑕佹眰闈炵┖錛屽垯鍦ㄥ師鏁板瓧涓婂姞256錛?br /> 濡傦細鏌愬瓧孌礳oltype=262,閭d箞,262-256=6錛岃瀛楁灝卞簲璇ヤ負錛歋ERIAL not NULL 綾誨瀷錛?br />



]]>
Informix緋葷粺琛ㄨ鏄?/title><link>http://www.tkk7.com/majianan/archive/2007/10/10/151666.html</link><dc:creator>椹槈妤?/dc:creator><author>椹槈妤?/author><pubDate>Wed, 10 Oct 2007 03:27:00 GMT</pubDate><guid>http://www.tkk7.com/majianan/archive/2007/10/10/151666.html</guid><wfw:comment>http://www.tkk7.com/majianan/comments/151666.html</wfw:comment><comments>http://www.tkk7.com/majianan/archive/2007/10/10/151666.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/majianan/comments/commentRss/151666.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/majianan/services/trackbacks/151666.html</trackback:ping><description><![CDATA[<span style="font-size: 10pt; font-family: Verdana">  systables錛氭弿榪版暟鎹簱涓殑寰堝紶琛紱   <br />   syscolumns錛氭弿榪版暟鎹簱涓〃鐨勫垪錛?nbsp;  <br />   sysindexes錛氭弿榪版暟鎹簱涓垪鐨勭儲寮曪紱   <br />   sysfragments錛氬瓨鍌ㄤ簡鍒嗘绱㈠紩鐨勭墖孌典俊鎭紱   <br />   sysfragauth錛氳〃璇嗗埆鍒楃駭鏉冮檺錛?nbsp;  <br />   sysviews錛氭弿榪頒簡鏁版嵁搴撲腑瀹氫箟鐨勬瘡涓鍥撅紱   <br />   sysdpend錛氭弿榪頒簡瑙嗗浘鏄浣曚緷璧栧叾浠栬鍥懼拰琛ㄧ殑錛?nbsp;  <br />   syssyntable錛氬畾涔夋瘡涓涓悓涔夎瘝鍙婂叾鎵浠h〃鐨勫璞★紱   <br />   sysconstraints錛氳褰曚簡鍔犺澆鍦ㄦ暟鎹簱琛ㄥ垪涓婄殑綰︽潫錛?nbsp;  <br />   sysreferences錛氬垪鍑轟簡鏀劇疆鍦ㄦ暟鎹簱涓婄殑鍙傜収綰︽潫錛屽畠涓烘暟鎹簱鐨勬瘡涓弬鐓х害鏉熷緩绔嬩竴琛?nbsp;  <br />   syscoldepend錛氳褰曚簡娑夊強媯鏌ョ害鏉熺殑鎵鏈夊垪錛屽寘鎷湪綰︽潫涓瘡鍒楅兘浼氬湪syscoldepend琛ㄤ腑鍒涘緩涓琛岋紱   <br />   sysprocedures錛氬瓨鏀炬暟鎹簱涓瘡涓繃紼嬬殑鐗瑰緛錛?nbsp;  <br />   sysprocplan錛氳杞戒簡榪囩▼鎵ц鎵闇鐨勪袱欏瑰唴瀹癸紙鎵ц璁″垝鎴栨煡璇㈣鍒掋侀檮灞炲垪琛級錛?nbsp;  <br />   sysprocauth錛氭弿榪版巿浜堝瓨鍌ㄨ繃紼嬬殑鏉冮檺錛?nbsp;  <br />   systriggers錛氳杞戒簡鍏充簬瑙﹀彂鍣ㄧ殑淇℃伅錛?nbsp;  <br />   sysblobs錛氱‘瀹欱LOB鍒楃殑瀛樺偍浣嶇疆錛?nbsp;  <br />   sysroleauth錛氭弿榪版巿浜堢敤鎴風殑瑙掕壊錛?nbsp;  <br />   sysobjstate錛氬瓨鍌ㄤ簡鍏充簬鏁版嵁搴撳璞$殑鐘舵佷俊鎭紱   <br />   sysvlolations錛氳繚渚嬫垨璇婃柇琛紱</span> <br /> <span style="font-size: 10pt; font-family: Verdana">  sysdefaults錛氭弿榪版暟鎹簱涓〃鐨勫垪鐨勯粯璁ゅ鹼紱</span> <img src ="http://www.tkk7.com/majianan/aggbug/151666.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/majianan/" target="_blank">椹槈妤?/a> 2007-10-10 11:27 <a href="http://www.tkk7.com/majianan/archive/2007/10/10/151666.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[璇慮understanding constructorshttp://www.tkk7.com/majianan/archive/2007/04/20/112198.html椹槈妤?/dc:creator>椹槈妤?/author>Fri, 20 Apr 2007 10:01:00 GMThttp://www.tkk7.com/majianan/archive/2007/04/20/112198.htmlhttp://www.tkk7.com/majianan/comments/112198.htmlhttp://www.tkk7.com/majianan/archive/2007/04/20/112198.html#Feedback3http://www.tkk7.com/majianan/comments/commentRss/112198.htmlhttp://www.tkk7.com/majianan/services/trackbacks/112198.htmlunderstanding constructors

                  --How constructors differ from methods

                                               By Robert Nielsen, JavaWorld.com, 10/13/00

                                               [璇慮 椹槈妤?/a>       2007.04.20


key words:

constructor      鏋勯犲嚱鏁?nbsp;        method        鏂規硶            instance          瀹炰緥
object             瀵硅薄              modifier         淇グ絎?nbsp;        return type      榪斿洖綾誨瀷
static method   闈欐佹柟娉?nbsp;        superclass      瓚呯被           Inheritance      緇ф壙
platypus          楦槾鍏?br>

鎴戜滑璇翠竴涓瀯閫犲嚱鏁版槸鏂規硶灝卞ソ姣旇婢蟲床楦槾鍏芥槸鍙︿竴涓摵涔沖姩鐗╀竴鏍楓?涓轟簡浜嗚В楦槾鍏斤紝鐭ラ亾鍏朵笌鍏朵粬鐨勫摵涔沖姩鐗╃殑宸埆瀵規垜浠潵璇撮潪甯擱噸瑕併傚悓鐞嗭紝浜嗚В鏋勯犲嚱鏁幫紝鐭ラ亾鏋勯犲嚱鏁頒笌鍏朵粬鏂規硶鐨勫尯鍒鎴戜滑鍚屾牱閲嶈銆傚浜庝換浣曞涔燡ava錛屽挨鍏舵槸涓轟簡鑾峰緱璧勬牸璇佷功鐨勫鐢熸潵璇達紝閮介渶瑕佺煡閬撹繖浜涘尯鍒傚湪榪欑瘒鏂囩珷涓紝鎴戝皢浼氫竴涓閬撴潵銆傚湪鏂囩珷緇撳熬錛孴able1 鎬葷粨浜哻onstructor錛堟瀯閫犲嚱鏁幫級鍜宮ethod錛堟柟娉曪級鐨勯噸瑕佸尯鍒?br>


Purpose and Function 錛堢洰鐨勪笌鍔熻兘錛?/span>


鏋勯犲嚱鏁伴兘鏈変竴涓洰鐨勶細鍒涘緩涓涓被鐨勫疄渚嬨備篃鍙互鍙仛鍒涘緩涓涓璞★紝濡備笅錛?br>

Platypus p1 = new Platypus();


鐩告瘮涔嬩笅,鏂規硶錛坢ethod錛夌殑鐩殑鏄懼緱鏇翠負鏅? 涓涓柟娉曠殑鍩烘湰鍔熻兘灝辨槸涓轟簡鎵цJava鐨勪唬鐮?




Signature differences錛堢鍚嶅尯鍒級錛?/span>Signature 涓嶇煡閬撴庝箞緲昏瘧濂斤級


鏋勯犲嚱鏁幫紙constructors錛夊拰鏂規硶錛坢ethods錛夊湪浠ヤ笅涓変釜鏂歸潰瀛樺湪宸埆錛?br>
·   淇グ絎?nbsp;  錛坢odifiers錛?br>·   榪斿洖綾誨瀷錛坮eturn type錛?br>·   鍚嶅瓧     錛坣ame錛?br>
鍍忔柟娉曚竴鏍鳳紝鏋勯犲嚱鏁板彲浠ユ湁浠繪剰涓縐嶈闂慨楗扮錛坅ccess modifiers錛夛細鍏叡鐨勶紙public錛夛紝淇濇姢鐨勶紙protected錛夛紝縐佹湁鐨勶紙private錛夋垨鑰呮病鏈夛紙甯歌縐頒負package鎴栬協riendly錛夈備笉鍚屼簬鏂規硶鐨勬槸錛屾瀯閫犲嚱鏁板彧鑳借璁塊棶淇グ絎﹁繘琛岄檺瀹氥傚洜姝わ紝鏋勯犲嚱鏁頒笉鑳芥槸abstract, static, final, natice or synchronized鐨勩?nbsp;

涓よ呯殑榪斿洖綾誨瀷錛坮eturn type錛変篃鏄埅鐒朵笉鍚岀殑銆傛柟娉曞彲浠ユ嫢鏈変換浣曟湁鏁堢殑榪斿洖綾誨瀷錛屾垨鑰呮柟娉曟病鏈夎繑鍥炲鹼紝榪欑鎯呭喌涓嬫柟娉曠殑榪斿洖綾誨瀷涓簐oid銆傛瀯閫犲嚱鏁版病鏈夎繑鍥炵被鍨嬶紝涔熸病鏈塿oid銆?br>
鏈鍚庯紝鏋勯犲嚱鏁板拰鏂規硶鍦ㄥ彇鍚嶆柟闈篃鏈夊緢澶х殑涓嶅悓銆傛瀯閫犲嚱鏁板悕瀛椾笌鍏剁被鍚嶏紙class name錛夌浉鍚岋紱鎸夌収鎯緥錛屾柟娉曚嬌鐢ㄥ叾浠栦笌綾誨悕涓嶇浉鍚岀殑鍚嶅瓧銆傚鏋淛ava紼嬪簭鍛橀伒寰氬父鎯緥錛屾柟娉曞悕灝嗕細浠ュ皬鍐欏瓧姣嶅紑澶達紝鏋勯犲嚱鏁板悕瀛椾互澶у啓瀛楁瘝寮澶淬傚茍涓旓紝鍥犱負涓庣被鍚嶇浉鍚岋紝鏋勯犲嚱鏁板悕瀛楅氬父鏄釜鍚嶈瘝錛屾柟娉曞悕瀛楁槸涓姩璇嶃?br>



The use of "this" 錛坱his鐨勪嬌鐢級


鏋勯犲嚱鏁板拰鏂規硶浣跨敤鍏抽敭瀛?this 宸埆寰堝ぇ銆?br>
鏂規硶涓殑 this 鎸囩殑鏄墽琛岃鏂規硶鐨勭被鐨勫疄渚嬶紙instance錛夈傞潤鎬佹柟娉曪紙static method錛変笉浣跨敤 this 銆傚洜涓洪潤鎬佹柟娉曚笉灞炰簬浠諱綍涓涓被鐨勫疄渚嬶紝鎵浠?this 鏃犳墍鎸囧悜銆傞潤鎬佹柟娉曟諱綋涓婂睘浜庝竴涓被鑰岄潪涓涓被鐨勫疄渚嬨?br>
鏋勯犲嚱鏁頒腑鐨?this 鎸囩殑鏄紝鍦ㄥ悓涓涓被涓嫢鏈変笉鍚岀殑鍙傛暟鍒楄〃鐨勫彟涓涓瀯閫犲嚱鏁般備唬鐮佸涓嬶細

public class Platypus {
       String name;
       Platypus(String input) {
               name 
= input;
       }
       Platypus() {
               
this("John/Mary Doe");
       }
       
public static void main(String args[]) {
               Platypus p1 
= new Platypus("digger");
               Platypus p2 
= new Platypus();
       }
}


鍦ㄤ唬鐮佷腑錛屾湁涓や釜鏋勯犲嚱鏁般?br>絎竴涓瀯閫犲嚱鏁伴氳繃涓涓猄tring鍙傛暟input緇檔ame榪涜璧嬪箋?br>絎簩涓瀯閫犲嚱鏁版病鏈夊弬鏁幫紝閫氳繃榛樿鐨勫悕瀛?John/Mary Doe"鏉ヨ皟鐢ㄧ涓涓瀯閫犲嚱鏁般?br>
濡傛灉鍦ㄦ瀯閫犲嚱鏁頒腑浣跨敤 this錛屽垯蹇呴』鍦ㄦ瀯閫犲嚱鏁扮殑絎竴琛屼唬鐮佸綋涓紝鍚﹀垯緙栬瘧鍣ㄤ細鎶ラ敊銆?br>娉細鍦ㄦ垜榪欓噷鐨勬姤閿欎俊鎭負 Constructor call must be the first statement in a constructor銆?br>



The use of "super"錛坰uper鐨勪嬌鐢級


鏂規硶鍜屾瀯閫犲嚱鏁頒嬌鐢?super 鐨勬椂鍊欙紝鎸囩殑閮芥槸瓚呯被錛坰uperclass錛夛紝浣嗕篃鏈夋墍涓嶅悓銆?br>
鏂規硶涓嬌鐢?super 灝嗕細鎵ц瓚呯被涓瑕嗙洊鐨勬柟娉曪紝濡備笅鎵紺猴細

class Mammal {
       
void getBirthInfo() {
               System.out.println(
"born alive.");
       }
}
class Platypus extends Mammal {
       
void getBirthInfo() {
               System.out.println(
"hatch from eggs");
               System.out.print(
"a mammal normally is ");
               
super.getBirthInfo();
       }
}


鍦ㄤ笂闈唬鐮佷腑錛宻uper.getBirthInfo() 灝嗕細璋冪敤瓚呯被 Mammal 涓瑕嗙洊鐨勬柟娉?getBirthInfo().


鏋勯犲嚱鏁頒腑浣跨敤 super 灝嗕細璋冪敤瓚呯被涓殑鏋勯犲嚱鏁般?br>濡傛灉鍦ㄦ瀯閫犲嚱鏁頒腑浣跨敤 super錛屽垯蹇呴』鍦ㄦ瀯閫犲嚱鏁扮殑絎竴琛屼唬鐮佸綋涓紝鍚﹀垯緙栬瘧鍣ㄤ細鎶ラ敊銆?br>娉細鍦ㄦ垜榪欓噷鐨勬姤閿欎俊鎭負 Constructor call must be the first statement in a constructor銆?br>
浠g爜濡備笅錛?br>

public class SuperClassDemo {
        SuperClassDemo() {}
}
class Child extends SuperClassDemo {
       Child() {
               
super();
       }
}





Complier -- supplied code錛堢紪璇戝櫒鎻愪緵鐨勪唬鐮侊級


褰撶紪璇戝櫒鑷姩涓烘瀯閫犲嚱鏁版彁渚涗唬鐮佺殑鏃跺欙紝Java鍒濆鑰呭彲鑳戒細鎰熷埌鍥版儜銆傚鏋滀綘鐨勭被涓病鏈夋瀯閫犲嚱鏁幫紝緙栬瘧鍣ㄥ皢浼氫負浣犺嚜鍔ㄦ彁渚涗竴涓病鏈夊弬鏁扮殑鏋勯犲嚱鏁般傚鏋滀綘鐨勪唬鐮佸涓嬶細

public class Example {}


鍔熻兘涓婂畠絳夊悓浜庡涓嬩唬鐮侊細

public class Example {
       Example() {}
}


濡傛灉鍦ㄤ綘鐨勬瀯閫犲嚱鏁扮殑絎竴琛屼唬鐮佸綋涓病鏈変嬌鐢?super錛岄偅涔堢紪璇戝櫒浼氳嚜鍔ㄤ負浣犳彁渚涗唬鐮侊紝鎻掑叆 super銆?br>濡傛灉浣犵殑浠g爜濡備笅錛?br>

public class TestConstructors {
       TestConstructors() {}
}


鍔熻兘涓婂畠絳夊悓浜庡涓嬩唬鐮侊細

public class TestConstructors {
       TestConstructors() {
               
super();       
         }
}


鍒濆鑰呭彲鑳戒細鏈夌枒闂細TestConstructors 騫舵病鏈夌戶鎵夸換浣曠被錛屼負浠涔堝畠浼氳皟鐢ㄧ埗綾葷殑鏋勯犲嚱鏁板憿錛?br>絳旀鏄細鍦?Java 涓鏋滄病鏈夋樉紺虹殑緇ф壙涓涓被錛屽垯榛樿涓虹戶鎵胯嚜 Object 綾匯?br>
濡傛灉娌℃湁鏄劇ず鐨勫0鏄庝竴涓瀯閫犲嚱鏁幫紝緙栬瘧鍣ㄨ嚜鍔ㄦ彁渚涗竴涓病鏈夊弬鏁扮殑鏋勯犲嚱鏁幫紱濡傛灉涓涓瀯閫犲嚱鏁版病鏈夋樉紺虹殑 super 璋冪敤錛岀紪璇戝櫒鑷姩鎻愪緵涓涓病鏈夊弬鏁扮殑 super 璋冪敤銆傛墍浠ヤ笅闈㈢殑涓ゆ浠g爜鍦ㄥ姛鑳戒笂鏄瓑浠風殑錛?br>

public class Example {} 


鍜?br>

public class Example {
       Example() {
             
super();
       }
}





Inheritance錛堢戶鎵匡級


涓嬮潰鎯呭喌鏈変粈涔堜笉瀵癸紵

寰嬪笀闃呰綾籄鐨勯仐鍢便傛墍鏈夊搴垚鍛樺洿鍧愬湪澶т細璁鏃侊紝騫朵笖鏈変簺浜哄湪杞誨0鍛滃捊銆傚緥甯堣鍒幫細“鎴戯紝綾籄錛屽ご鑴戞竻妤氳韓浣撳仴搴鳳紝灝嗘垜鎵鏈夌殑鏋勯犲嚱鏁扮暀緇欐垜鐨勫瀛?#8221;銆?br>
闂鏄瀯閫犲嚱鏁頒笉鏄氳繃緇ф壙寰楀埌鐨勩傜劧鑰屽垢榪愮殑鏄紝瀛愮被鍙互鑷姩鐨勭戶鎵跨埗綾繪墍鏈夌殑鏂規硶錛屾墍浠ュ瓙綾誨茍涓嶆槸涓鏃犳墍鏈夈?br>
璁頒綇錛欽ava 鏂規硶鍙互閫氳繃緇ф壙寰楀埌錛岃屾瀯閫犲嚱鏁頒笉琛屻傜湅涓嬮潰浠g爜錛?br>

public class Example {
        
public void sayHi {
                system.out.println(
"Hi");
        }
        Example() {}
}
public class SubClass extends Example {
}


綾?SubClass 鑷姩緇ф壙鐖剁被鐨?sayHi 鏂規硶銆傜劧鑰岋紝鏋勯犲嚱鏁?Example() 涓嶄細琚被 SubClass 鎵緇ф壙銆?br>



Summarizing the differences


鏋勯犲嚱鏁頒笌鏂規硶鐨勫尯鍒氨鍍忛腑鍢村吔涓庡吀鍨嬬殑鍝轟鉤鍔ㄧ墿涓鏍楓傚挨鍏舵槸鍦ㄧ洰鐨勶紙purpose錛夛紝絳懼悕錛坰ignature錛夛紝鍜?this 涓?super 鐨勪嬌鐢ㄦ柟闈€傚彟澶栵紝鍦ㄧ戶鎵垮拰緙栬瘧鍣ㄦ彁渚涗唬鐮佹柟闈篃鏈夊緢澶у樊寮傘傝浣忔墍鏈夌殑鍖哄埆鍙兘浼氶潪甯歌緵鑻︼紝鎵浠ヤ笅闈㈡彁渚涚殑涓涓〃鏍鹼紝綆鍗曠殑姒傛嫭浜嗛噸瑕佺殑宸紓鏂歸潰銆?br>

Topic Constructors Methods
Purpose Create an instance of a class Group Java statements
Modifiers Cannot be abstract, final, native, static, or synchronized Can be abstract, final, native, static, or synchronized
Return type No return type, not even void void or a valid return type
Name Same name as the class (first letter is capitalized by convention) -- usually a noun Any name except the class. Method names begin with a lowercase letter by convention -- usually the name of an action
this Refers to another constructor in the same class. If used, it must be the first line of the constructor Refers to an instance of the owning class. Cannot be used by static methods
super Calls the constructor of the parent class. If used, must be the first line of the constructor Calls an overridden method in the parent class
Inheritance Constructors are not inherited Methods are inherited
Compiler automatically supplies a default constructor If the class has no constructor, a no-argument constructor is automatically supplied Does not apply
Compiler automatically supplies a default call to the superclass constructor If the constructor makes no zero-or-more argument calls to super, a no-argument call to super is made Does not apply




鍘熸枃錛?a >http://www.javaworld.com/jw-10-2000/jw-1013-constructors.html



]]>
java 鍏抽敭瀛?native 璇存槑http://www.tkk7.com/majianan/archive/2007/04/19/111967.html椹槈妤?/dc:creator>椹槈妤?/author>Thu, 19 Apr 2007 08:02:00 GMThttp://www.tkk7.com/majianan/archive/2007/04/19/111967.htmlhttp://www.tkk7.com/majianan/comments/111967.htmlhttp://www.tkk7.com/majianan/archive/2007/04/19/111967.html#Feedback1http://www.tkk7.com/majianan/comments/commentRss/111967.htmlhttp://www.tkk7.com/majianan/services/trackbacks/111967.htmlJava 鍏抽敭瀛?native 璇存槑

椹槈妤?/a>  2007-04-19



濡傛灉鎯崇敤闈濲ava浠g爜鏉ョ紪鍐欑▼搴忥紝鎴栬呴渶瑕佺洿鎺ユ搷綰電‖浠訛紝姝ゆ椂錛屼綘鍙互緙栧啓鏈満鏂規硶(native method)銆?/p>

native鍏抽敭瀛楀氨鏄敤鏉ュ0鏄庢湰鏈烘柟娉?native method)鐨勩備竴鏃﹀0鏄庯紝榪欎簺鏈満鏂規硶鍙互鍦↗ava紼嬪簭涓璋冪敤錛屽氨鍍忚皟鐢ㄥ叾浠朖ava鏂規硶涓鏍楓?br>  
native method 鐢–/C++璇█瀹炵幇錛屽茍涓旇緙栬瘧鎴怐LL錛岃繖浜涘嚱鏁扮殑瀹炵幇浣撳湪DLL涓紝鍦↗ava涓湰鏈烘柟娉曚綋鍙槸涓涓垎鍙楓?/p>

渚嬪鍚戞搷浣滅郴緇熻姹傛満鍣ㄧ殑CPU緙栧彿鏂規硶錛屽涓嬶細

      public native int getCPUID();


native method 浠ュ彲浠ヨ閲嶈澆鎴栬呰鐩栵紝涔熷彲浠ユ槸final, static, synchronized, public, protected, private 鐨勩備絾鏄湰鏈烘柟娉曚笉鑳藉0鏄庝負abstract鎴栬卻trictfp綾誨瀷銆?br>




]]>
Print Fibonacci Sequcncehttp://www.tkk7.com/majianan/archive/2007/04/18/111675.html椹槈妤?/dc:creator>椹槈妤?/author>Wed, 18 Apr 2007 08:47:00 GMThttp://www.tkk7.com/majianan/archive/2007/04/18/111675.htmlhttp://www.tkk7.com/majianan/comments/111675.htmlhttp://www.tkk7.com/majianan/archive/2007/04/18/111675.html#Feedback0http://www.tkk7.com/majianan/comments/commentRss/111675.htmlhttp://www.tkk7.com/majianan/services/trackbacks/111675.html
public class Fibonacci {

    
private static int MAX = 100;
    
/*
     * print the Fibonacci sequence for values < MAX
     
*/
    
public static void main(String[] args) {
        
int currentVal    = 1;
        
int nextVal        = 1;
        
while(currentVal<MAX){
            System.out.println(currentVal);
            nextVal 
= nextVal + currentVal ;
            currentVal 
= nextVal - currentVal;
        }
    }
}



]]>
閽?/title><link>http://www.tkk7.com/majianan/archive/2007/04/18/111520.html</link><dc:creator>椹槈妤?/dc:creator><author>椹槈妤?/author><pubDate>Wed, 18 Apr 2007 02:30:00 GMT</pubDate><guid>http://www.tkk7.com/majianan/archive/2007/04/18/111520.html</guid><wfw:comment>http://www.tkk7.com/majianan/comments/111520.html</wfw:comment><comments>http://www.tkk7.com/majianan/archive/2007/04/18/111520.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/majianan/comments/commentRss/111520.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/majianan/services/trackbacks/111520.html</trackback:ping><description><![CDATA[<br><span style="FONT-FAMILY: Verdana">閽辮繖涓滆タ鍛錛佸彧鏄敓媧葷殑宸ュ叿錛屽鏋滄垚浜嗙敓媧葷殑鐩爣灝辨病浠涔堟剰鎬濅簡</span><br><br> <img src ="http://www.tkk7.com/majianan/aggbug/111520.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/majianan/" target="_blank">椹槈妤?/a> 2007-04-18 10:30 <a href="http://www.tkk7.com/majianan/archive/2007/04/18/111520.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>QQ鏈ㄩ┈win32.QQPsw.wunaiwangdaod.a鍒犻櫎鏂規硶錛侊紒錛?/title><link>http://www.tkk7.com/majianan/archive/2007/02/09/99032.html</link><dc:creator>椹槈妤?/dc:creator><author>椹槈妤?/author><pubDate>Fri, 09 Feb 2007 08:30:00 GMT</pubDate><guid>http://www.tkk7.com/majianan/archive/2007/02/09/99032.html</guid><wfw:comment>http://www.tkk7.com/majianan/comments/99032.html</wfw:comment><comments>http://www.tkk7.com/majianan/archive/2007/02/09/99032.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/majianan/comments/commentRss/99032.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/majianan/services/trackbacks/99032.html</trackback:ping><description><![CDATA[     鎽樿: QQ鏈ㄩ┈win32.QQPsw.wunaiwangdaod.a鍒犻櫎鏂規硶錛侊紒錛?nbsp; <a href='http://www.tkk7.com/majianan/archive/2007/02/09/99032.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/majianan/aggbug/99032.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/majianan/" target="_blank">椹槈妤?/a> 2007-02-09 16:30 <a href="http://www.tkk7.com/majianan/archive/2007/02/09/99032.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐢↗avaScript媯鏌ュぇ鍐欓敭錛圕aps Lock錛夋槸鍚︽墦寮錛堝師鍒涳級http://www.tkk7.com/majianan/archive/2007/02/01/97284.html椹槈妤?/dc:creator>椹槈妤?/author>Thu, 01 Feb 2007 07:21:00 GMThttp://www.tkk7.com/majianan/archive/2007/02/01/97284.htmlhttp://www.tkk7.com/majianan/comments/97284.htmlhttp://www.tkk7.com/majianan/archive/2007/02/01/97284.html#Feedback0http://www.tkk7.com/majianan/comments/commentRss/97284.htmlhttp://www.tkk7.com/majianan/services/trackbacks/97284.html 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鐢↗avaScript媯鏌ュぇ鍐欓敭錛圕aps Lock錛夋槸鍚︽墦寮錛堝師鍒涳級

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 椹槈妤?/font>聽聽聽 2007騫?鏈?鏃?br />

鏂板勾絎竴綃囷紒甯屾湜鏂扮殑涓騫村ぇ瀹跺拰鎴戜竴鏍峰ぉ澶╁紑蹇冿紝鑳藉瀛︾偣涓滆タ錛屽澶氳禋閽盺-^


鍦ㄧ敤鎴烽亣鍒伴渶瑕佽緭鍏ュ瘑鐮佺殑欏甸潰鏃跺欙紝瀵嗙爜涓槸鍚︽湁澶у啓瀛楁瘝錛熷ぇ鍐欓敭錛圕aps Lock錛夋槸鍚︽墦寮錛熷鏋滆兘緇欑敤鎴蜂互鎻愮ず錛屽矀涓嶆槸鏇村ソ錛?br />
涓嬮潰鐨勭ず渚嬩唬鐮佺粰鍑轟簡鏂規硶錛屽繀瑕佺殑璇存槑浠g爜褰撲腑閮芥湁娉ㄩ噴銆?br />闂腑鐭ヨ瘑鐐癸細event.keyCode聽 鍜?event.shiftKey
濡傛灉鏈変笉瀵癸紝涓嶆槑鐧藉湴鏂規垨鑰呮湁鏇村ソ鐨勫緩璁紝璇峰憡璇夋垜錛佽阿璋+^



HTML欏甸潰浠g爜

<! DOCTYPE聽HTML聽PUBLIC聽"-//W3C//DTD聽HTML聽4.0聽Transitional//EN" >
< HTML >
< HEAD >
< TITLE > 聽Detect聽Caps聽Lock </ TITLE >
< script >
function 聽detectCapsLock(e){
聽聽聽聽valueCapsLock聽
= 聽e.keyCode ? e.keyCode:e.which; // Caps聽Lock銆鏄惁鎵撳紑

聽聽聽聽valueShift聽 = 聽e.shiftKey ? e.shiftKey:((valueCapsLock聽 == 16 ) ? true : false ); // shift閿槸鍚︽寜浣?br />
聽聽聽聽 if (((valueCapsLock聽 >= 65 && 聽valueCapsLock聽 <= 90 )聽 && ! valueShift) // Caps聽Lock聽鎵撳紑錛屽茍涓斅爏hift閿病鏈夋寜浣?/span>
聽聽聽聽 || ((valueCapsLock聽 >= 97 && 聽valueCapsLock聽 <= 122 )聽 && 聽valueShift)) // Caps聽Lock聽鎵撳紑錛屽茍涓旀寜浣徛爏hift閿?/span>
聽聽聽聽聽聽聽聽document.getElementById('capStatus').style.visibility聽 = 聽'visible';
聽聽聽聽
else

聽聽聽聽聽聽聽聽document.getElementById('capStatus').style.visibility聽
= 聽'hidden';

聽聽
/*

聽聽javascript涓璳eyCode浠g爜瀵瑰簲琛?br />聽聽event.keyCode=32聽聽聽聽聽聽聽聽絀烘牸
聽聽event.keyCode=13聽聽聽聽聽聽聽聽鍥炶濺
聽聽event.keyCode=27聽聽聽聽聽聽聽聽Esc
聽聽event.keyCode=16)聽聽聽聽聽聽聽聽Shift
聽聽event.keyCode=17)聽聽聽聽聽聽聽聽Ctrl
聽聽event.keyCode=18)聽聽聽聽聽聽聽聽Alt
聽聽
*/

}
</ script >
</ HEAD >

< BODY >
< input聽 type ="password" 聽name ="pwd" 聽onkeypress ="detectCapsLock(event)" />
< div聽 id ="capStatus" 聽style ="visibility:hidden" >< font聽 color =red > Caps聽Lock聽is聽on. < font ></ div >
</ BODY >
</ HTML >





]]>
Webdings瀛椾綋鍥炬http://www.tkk7.com/majianan/archive/2006/12/19/88726.html椹槈妤?/dc:creator>椹槈妤?/author>Tue, 19 Dec 2006 03:14:00 GMThttp://www.tkk7.com/majianan/archive/2006/12/19/88726.htmlhttp://www.tkk7.com/majianan/comments/88726.htmlhttp://www.tkk7.com/majianan/archive/2006/12/19/88726.html#Feedback3http://www.tkk7.com/majianan/comments/commentRss/88726.htmlhttp://www.tkk7.com/majianan/services/trackbacks/88726.html聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 Webdings瀛椾綋鍥炬

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
椹槈妤?/font> 聽聽聽2006-12-19


鍦ㄧ綉欏典腑閫傚綋鐨勪嬌鐢╓ebdings瀛椾綋,鍙互浣跨綉欏墊洿鍔犵編瑙?
涓鑸垜浠粡甯哥敤鍒扮殑搴旇鏄?font color="#000080">鏁板瓧瀵瑰簲鐨剋ebdings瀛椾綋, 榪樻湁鐗規畩瀛楃涓殑": ", 鍏朵粬鐨勫氨鐪嬩釜浜哄枩濂戒簡.





鏁板瓧瀵瑰簲鐨剋ebdings瀛椾綋:

0 聽聽聽1 聽聽聽2 聽聽聽3 聽聽聽4 聽聽聽5 聽聽聽6 聽聽聽7 聽聽聽8 聽聽聽9

0 1 2 3 4 5 6 7 8 9




鑻辨枃灝忓啓瀛楁瘝瀵瑰簲鐨剋ebdings瀛椾綋:

a 聽聽聽b 聽聽聽c 聽聽聽d 聽聽聽e 聽聽聽f 聽聽聽g 聽聽聽h 聽聽聽i 聽聽聽j 聽聽聽k 聽聽聽l 聽聽聽m


a b c d e f g h i j k l m



n 聽聽聽o 聽聽聽p 聽聽聽q 聽聽聽r 聽聽聽s 聽聽聽t 聽聽聽u 聽聽聽v 聽聽聽w 聽聽聽x 聽聽聽y 聽聽聽z


n o p q r s t u v w x y z




鑻辨枃澶у啓瀛楁瘝瀵瑰簲鐨剋ebdings瀛椾綋:

A 聽聽聽B 聽聽C 聽聽D 聽聽E 聽聽F聽聽聽G 聽聽H 聽聽聽I 聽聽聽J聽聽聽K 聽聽聽L 聽聽聽M


A B C D E F G H I J K L M



N 聽聽聽O 聽聽P 聽聽Q 聽聽R 聽聽S 聽聽T 聽聽U 聽聽V 聽W X 聽Y 聽聽Z


N O P Q R S T U V W X Y Z




鐗規畩瀛楃瀵瑰簲鐨剋ebdings瀛椾綋:


鐗規畩瀛楃:

` 聽聽聽聽! 聽聽聽@ 聽聽聽# 聽聽$ 聽聽聽% 聽聽^ 聽聽& 聽

webdings瀛椾綋:

` ! @ # $ % ^ &




鐗規畩瀛楃:

*聽聽聽聽( 聽聽聽聽) 聽聽聽聽-聽聽聽聽+ 聽聽聽|聽聽聽聽-聽聽聽聽=

webdings瀛椾綋:

* ( ) - + | - =




鐗規畩瀛楃:

[ 聽聽聽聽]聽聽聽聽{ 聽聽聽聽} 聽聽聽; 聽聽聽' 聽聽聽聽: 聽聽聽聽"

webdings瀛椾綋:

[ ] { } ; ' : "



鐗規畩瀛楃:

< 聽聽聽聽> 聽聽聽聽,聽聽聽聽.聽聽聽聽\聽聽聽聽/ 聽聽聽聽?

webdings瀛椾綋:
< > , . \ / ?




]]>
鏉′歡娉ㄩ噴http://www.tkk7.com/majianan/archive/2006/12/09/86522.html椹槈妤?/dc:creator>椹槈妤?/author>Sat, 09 Dec 2006 03:44:00 GMThttp://www.tkk7.com/majianan/archive/2006/12/09/86522.htmlhttp://www.tkk7.com/majianan/comments/86522.htmlhttp://www.tkk7.com/majianan/archive/2006/12/09/86522.html#Feedback0http://www.tkk7.com/majianan/comments/commentRss/86522.htmlhttp://www.tkk7.com/majianan/services/trackbacks/86522.html 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽鏉′歡娉ㄩ噴
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
椹槈妤?/font> 2006-12-09

鏉′歡娉ㄩ噴灝辨槸涓浜沬f鍒ゆ柇錛屼絾榪欎簺鍒ゆ柇涓嶆槸鍦ㄨ剼鏈噷鎵ц鐨勶紝鑰屾槸鐩存帴鍦╤tml浠g爜閲屾墽琛岀殑,渚嬪:

<!-- [if聽XXX]>
榪欓噷鏄甯哥殑html浠g爜
<![endif]
-->


榪欓噷XXX鏄竴浜涚壒瀹氱殑涓滀笢錛屽湪姝ゅ垪琛ㄥ嚑涓嚭鏉ワ紝璇︾粏浠嬬粛鍚勮嚜鐨勫惈涔夛細

<!--[if聽IE]>聽聽聽聽聽聽聽聽聽聽聽聽 /聽濡傛灉嫻忚鍣ㄦ槸IE聽/
<!--[if聽IE聽5]>聽聽聽聽聽聽聽聽聽聽/聽濡傛灉嫻忚鍣ㄦ槸IE聽5聽鐨勭増鏈?
<!--[if聽IE聽6]>聽聽聽聽聽聽聽聽聽聽/聽濡傛灉嫻忚鍣ㄦ槸IE聽6聽鐨勭増鏈?
<!--[if聽IE聽7]>聽聽聽聽聽聽聽聽聽聽/聽濡傛灉嫻忚鍣ㄦ槸IE聽7聽鐨勭増鏈?


涓婇潰鏄嚑涓父鐢ㄧ殑鍒ゆ柇IE嫻忚鍣ㄧ増鏈殑璇硶錛屼笅闈㈠啀鏉ヤ粙緇嶄竴涓嬬浉瀵規瘮杈冨皯鐢ㄧ殑閫昏緫鍒ゆ柇鐨勫弬鏁幫細
鏈夊嚑涓弬鏁幫細lte錛宭t錛実te錛実t錛?

lte 錛歀ess than or equal to聽聽
lt聽聽 錛歀ess than聽聽聽聽聽聽聽聽聽聽聽聽聽聽
gte 錛欸reater than or equal to
gt聽 錛欸reater than
!聽聽聽 錛氫笉絳変簬

渚嬪錛?/font>

<!-- [if聽gt聽IE聽5.5]>聽聽聽聽聽聽聽聽/聽濡傛灉IE鐗堟湰澶т簬5.5聽/
<!--[if聽lte聽IE聽6]>聽聽聽聽聽聽聽聽聽聽 /聽濡傛灉IE鐗堟湰灝忎簬絳変簬6聽/
<!--[if聽!IE]>聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 /聽濡傛灉嫻忚鍣ㄤ笉鏄疘E聽/


鏄庣櫧浜嗘潯浠舵敞閲婄殑鐢ㄦ硶錛屽啀涓句釜渚嬪瓙錛堝彲鎶婁唬鐮佺洿鎺ユ斁鍒癶tml浠g爜涓?鐪嬬湅鎵ц鏁堟灉^+^錛夛細

涓嬮潰涓孌典唬鐮佹槸嫻嬭瘯鍦ㄥ井杞殑IE嫻忚鍣ㄤ笅鐨勬潯浠舵敞閲婅鍙ョ殑鏁堟灉

<!-- [if聽IE]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer<br聽/>聽
<聽![endif]
-->

<!--
[if聽IE聽5]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer聽5<br聽/>聽
<聽![endif]
-->

<!--
[if聽IE聽5.0]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer聽5.0<br聽/>聽
<聽![endif]
-->

<!--
[if聽IE聽5.5]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer聽5.5<br聽/>聽
<聽![endif]
-->

<!--
[if聽IE聽6]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer聽6<br聽/>聽
<聽![endif]
-->

<!-- [if聽IE聽7]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer聽7<br聽/>聽
<聽![endif]
-->

<!--
[if聽gte聽IE聽5]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer聽5聽鎴栬呮洿楂?lt;br聽/>聽
<聽![endif]
-->

<!--
[if聽lt聽IE聽6]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄増灝忎簬6鐨処nternet聽Explorer<br聽/>聽
<聽![endif]
-->

<!--
[if聽lte聽IE聽5.5]>聽
鏍規嵁鏉′歡鍒ゆ柇錛岃繖鏄疘nternet聽Explorer聽5.5鎴栨洿浣?lt;br聽/>聽
<聽![endif]
-->

涓嬮潰鐨勪唬鐮佹槸鍦ㄩ潪IE嫻忚鍣ㄤ笅榪愯鐨勬潯浠舵敞閲?

<!-- [if聽!IE]><! -->
鎮ㄤ嬌鐢ㄤ笉鏄營nternet聽Explorer
< br聽 />
<!-- <![endif] -->
<!-- [if聽IE聽6]><! -->
鎮ㄦ鍦ㄤ嬌鐢↖nternet聽Explorer聽version聽6
< br聽 />
鎴栬吢犱竴涓潪IE聽嫻忚鍣?/font>
< br聽 />
<!-- <![endif] -->

娉?
鏉′歡娉ㄩ噴鏄湪IE5.0/Win浠ュ悗鎵嶈IE鏀寔鐨勶紝瀵逛簬IE5浠ュ墠鐨勬祻瑙堝櫒鏄棤鏁堢殑.



]]>
主站蜘蛛池模板: 中文字幕亚洲图片| 全免费a级毛片免费**视频| 久久国产精品成人免费| 久久国产精品免费| 国产精品免费视频观看拍拍 | 亚洲国产高清在线一区二区三区 | 国内精品免费久久影院| 一区二区在线视频免费观看| 国产精品无码永久免费888| 一区二区在线视频免费观看| 91免费在线视频| 无码中文字幕av免费放dvd| 午夜免费福利视频| 精品香蕉在线观看免费| 欧美a级成人网站免费| 免费看www视频| 亚洲午夜无码片在线观看影院猛| 亚洲精品视频在线观看你懂的| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 国产午夜亚洲精品国产| 久久久亚洲精华液精华液精华液| 国产AV日韩A∨亚洲AV电影 | 亚洲kkk4444在线观看| 亚洲暴爽av人人爽日日碰| 免费无码国产在线观国内自拍中文字幕| 日韩在线视频播放免费视频完整版| 日本视频免费观看| 国内精品免费在线观看| 99精品视频在线视频免费观看 | 国产精品免费αv视频| 久久成人免费电影| 99久久久国产精品免费无卡顿| 成人性生交大片免费看午夜a| 四虎成人精品在永久免费| 狠狠亚洲婷婷综合色香五月排名 | 亚洲精品无码久久千人斩| 亚洲制服中文字幕第一区| 亚洲精品国产国语| www成人免费观看网站| 日本免费人成网ww555在线 | 9久热这里只有精品免费|