Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚieµÄÄÚ´æй©ÓëjavascriptÄÚ´æÊÍ·Å

×î½ü×öÒ»¸ö¹«Ë¾µÄÒµÎñϵͳ£¬¹«Ë¾ÒªÇóÄܾ¡¿ÉÄܵÄÓëc/s½üËÆ£¬Ò²¾ÍÊÇÈçc/sÒ»Ñù£¬µã»÷Îı¾¿ò¿ÉÒÔµ¯³ö´ËÏîÄ¿µÄÏà¹ØÄÚÈÝ£¬½øÐÐÑ¡ÔñÊäÈë¡£
     ÎÒʹÓÃÁ˵¯³ö´°¿Ú£¬È»ºóÔÚ×Ó´°¿ÚË«»÷Ñ¡ÖÐÏîÄ¿£¬°ÑÑ¡ÖеÄÖµ·µ»Ø¸ø¸¸´°Ìå¡£
     ÔÚϵͳ×öÍêÁËÖ®ºó£¬ÔÚ¿Í»§Ê¹ÓõĹý³Ì£¬ÓÉÓÚ¿Í»§Ê¹ÓõÄÊÇ512mµÄÄÚ´æÅäÖã¬ËùÒÔÔÚ´ò¿ªÁË30--40¸ö´°ÌåÖ®ºó£¬ieµÄÐéÄâÄÚ´æÕ¼ÓÃÁ¿´ïµ½½ü200m£¬´Ó¶øʹϵͳ±äÂý£¬javascriptµÄÔËÐÐÒ²±äÂýÁË¡£
      ÔÚgoogleËÑÁËÒ»ÏÂÖ®ºó£¬²ÅÖªµÀ¿ÉÄÜÊÇÓÉÓÚieµÄÄÚ´æй©ÒýÆðµÄ¡£¾ßÌå¿ÉÒԲο´www.cnblogs.comÖеÄÏà¹ØÎÄÕ¡£
      ÎÒʹÓÃÈÎÎñ¹ÜÀíÆ÷£¬´ò¿ªÒ»¸öµ¯³ö´°¿Ú£¬ieÄÚ´æ¾ÍÔö¼Ó1-3m£¬È»ºó¹Ø±Õ´°¿Ú£¬ÓÐʱÄÚ´æ²¢²»ÊÍ·Å£¬ÓÐʱ²ÅÊͷż¸Ê®k¡£¿´À´ÎÊÌâ³öÔÚÁËÄÚ´æÊÍ·ÅÉÏÃæ¡£
      ½Ó×Å°´ÄÚ´æÊÍ·ÅÕâ¸ö˼·£¬½øÐÐËÑË÷²éÕÒ·½·¨£¬À´½øÐнâ¾öÕâ¸öÎÊÌâ¡£ÎÒÕÒµ½Ò»¸öjavascriptδ¹«¿ªµÄº¯ÊýCollectGarbage£¬Õâ¸öº¯ÊýÊÇÓÃÀ´½øÐÐÄÚ´æÊͷŵġ£ÎÒÔÚËùÓеĵ¯³ö´°¿Ú½áÊø֮ǰ°ÑËùÓеÄ×Ô¼º¶¨ÒåµÄjavasctipµÄ±äÁ¿ÉèÖÃΪnull£¬²¢µ÷ÓÃCollectGarbageº¯Êý¡£
      javascriptÖаѱäÁ¿ÉèΪnull£¬javascript²¢²»»á°ÑÄÚ´æÊÍ·Å£¬µ±Ï´ÎÔٴζ¨Òå±äÁ¿Ê±£¬¾Í»á¸²¸Ç´Ë±äÁ¿ËùÔÚµÄÄÚ´æ¡£Èç¹û²»ÉèΪnull£¬javascriptÔٴζ¨Òå±äÁ¿Ê±£¬»á¿ª±ÙÒ»¸öеÄÄÚ´æ¿Õ¼ä¡£
      ÔÚʹÓÃÒÔÉÏ´¦ÀíÖ®ºó£¬Ôٴδò¿ª´°¿Ú£¬ieµÄÄÚ´æÿ´Î»¹ÊÇÔö¼Ó1-3m£¬µ«ÊÇÔڹرմ°¿ÚÖ®ºó£¬Ôòie»áÊÍ·ÅÒ»¶¨ÊýÁ¿µÄÄÚ´æÔÚ500kÖÁ2m¡£Æðµ½ÁËÒ»¶¨µÄ×÷Óá£
       ÓÉÓÚÎÒÔÚÒ³ÃæÖÐʹÓÃÁ˵ÚÈý·½µÄ¿Ø¼þ£¬µÚÈý·½µÄ¿Ø¼þÖеÄjavascriptÖеÄÄÚ´æÊÇÈçºÎ¹ÜÀí£¬¾Í²»ÊÇÓÉÎÒÀ´¿ØÖƵÄÁË¡£
     
1.javascriptÄÚ´æÊͷŵķ½·¨Ê¾Àý
  °ÑËùÓÐÉϼ¶º¯ÊýµÄ²ÎÊý¼´Ê¹ÉèΪnull£¬²¢Ê¹ÓÃCollectGarbageÀ´ÊÍ·ÅÄÚ´æ¡£  
ʾÀý
  <script>  
   
  //32M  
  function   AllocMem()  
  {  
  var   str="12345678";  
  for(var   i=3;i<24;i++)  
  str+=str;  
  return   str;  
&


Ïà¹ØÎĵµ£º

javascriptЧÂʾ­Ñé̸(Ò»)

±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔ­À´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾­Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾­¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷Ô­Òò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......

javascriptдÀ෽ʽ֮¶þ

2¡¢Ô­ÐÍ·½Ê½
/**
* PersonÀࣺ¶¨ÒåÒ»¸öÈË£¬ÓиöÊôÐÔname£¬ºÍÒ»¸ögetName·½·¨
*/
function Person(){}
Person.prototype.name = "jack";
Person.prototype.getName = function() { return this.name;}

°ÑÀàµÄÊôÐÔ£¨×ֶΣ©£¬·½·¨¶¼¹ÒÔÚprototypeÉÏ¡£
Ô켸¸ö¶ÔÏó²âÊÔÏ£º
var p1 = new Person();
var ......

javascript ¼üÅÌʼþ×ܽá


ÔÚ½øÈëÕýÌâÇ°£¬ÎÒÃÇ¿´Ò»ÏÂä¯ÀÀÆ÷¶ÔÓÚ¼üÅ̵ÄһЩĬÈÏʼþ£¬ÕâÓÐÖúÓÚÎÒÃÇÓÃjavascript½Ø»ñ¼üÅÌʼþ¡£
ÔÚformÖУ¬ submitµÄ¿ì½Ý¼üÊÇ enter£¬resetµÄ¿ì½Ý¼üÊÇ esc¡£²»¹ýÔÚ
IE6,safari4,ff3.5,opera10,chromeÖÐ
£¬°´Enter£¬²»µ«¼¤·¢formµÄsubmitʼþ£¬Í¬Ê±Ò²»á¼¤·¢
Ìá½»°´Å¥µÄonclick£¬¼¤·¢Ë³ÐòΪÌá½»°´Å¥µÄ onclick &rarr ......

javascriptµØÖ·À¸Ð´·¨

javascriptµØÖ·À¸Ð´·¨
±¾µØ¿Í»§¶ËÈ«Ñ¡checkbox.¿ÉÒÔÓÃÕâ¸öÑ¡¡£
0. Ç°ÑÔ
ËùνIEµØÖ·À¸±í´ïʽ£¬¾ÍÊÇÔÚIEµÄµØÖ·À¸ÖÐÊäÈë javascript:<´úÂë>£¬Ö´ÐÐijЩ¹¦ÄÜ£¬À´¶¯Ì¬¸Ä±äÔ­ÓÐÒ³ÃæµÄ²ÎÊýÒԴﵽijЩĿµÄ£¬ÀýÈ翪·Å±»½ûÖ¹µÄ°´Å¥¡¢ÏÔʾԭ±¾Òþ²ØµÄͼƬµÈµÈ¡£±¾ÎĽ«¾ÍIEµØÖ·À¸µÄʹÓ÷½·¨×öÒ»¸öÏêϸµÄ˵Ã÷¡£
1. ±í´ïʽµÄÊéд· ......

javascript:void(0)

½ñÌì¿´µ½¡¶AJAX¿ª·¢¼òÂÔ¡·ÖÐËùÓеÄ<A href>¶¼Óõ½ÁËjavascript:void(0)
½ñÌì¿´ÁËÒ»ÏÂÔ­À´Õâ¸ö±í´ïʽµÄ×÷ÓþÍÊÇÈõ±Ç°Õâ¸ö³¬Á´½Ó³ÉΪһ¸öËÀÁ´½Ó£¬¾ÍÊÇʲô¶¼²»×÷¡£
ÒÔÏÂÕª×Ô£º
http://blog.csdn.net/mouyong/archive/2007/01/24/1491761.aspx
±ðÈËЩµÄJavaScript½Å±¾¿ÉÒÔ¿´µ½ÕâÑùµÄ´úÂ룺
<a href="javascript ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ