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

javaScriptÖÐparseIntº¯ÊýС½á

 Ç°¼¸Ìì×öÍøÕ¾µÄʱºòÐèÒª½²Êý¾Ý¿âÖеÄʱ¼ä¶ÁÈ¡µ½±äÁ¿ÖнøÐÐʹÓã¬Óõ½parseIntº¯Êý£¬½²×Ö·ûת»¯ÎªÊý×Ö¡£½ñÌì²âµÄʱºò·¢ÏÖÎÊÌâÁË£¬µ±Êý¾Ý¿âÖÐÔ·ÝΪ09µÄʱºò¾Í³öÎÊÌâÁË£¬ÓÃparseIntת»»Ö®ºó¾Í³É0ÁË¡£ºÃ²»½â¡£²âÁ˺þã¬Ã»Óз¢ÏÖÎÒ´úÂëÖеÄÎÊÌ⣬µ½googleËÑÁËһϣ¬²ÅÖªµÀÊÇÕâôһ»ØÊ¡£
¶ÔÓÚparseInt("01")µ½parseInt("07");parseInt("10") µ½ ÒÔºó¶¼Äܵõ½ÕýÈ·µÄ½á¹û£¬µ«Èç¹ûÊÇparseInt("08") »òparseInt("09")Ôò·µ»Ø0£» Ê×ÏÈ¿´parseIntÓï·¨£ºparseInt(string, radix); Èç¹ûºóÃæ²ÎÊýûд¾ÍÒÔµÚÒ»¸öµÄ¿ªÍ·ÅжÏÆäÖÐstringΪҪת»»µÄ×Ö·û´®£¬radixΪ¶þ½øÖÆ£¬°Ë½øÖÆ£¬Ê®Áù½øÖÆ»òÊ®½øÖÆ¡£ ÔÚĬÈϲ»Ö¸¶¨radixʱ£¬µ±ÒÔ0x¿ª¹Øʱ£¬ÎªÊ®Áù½øÖÆ£»Èç¹ûÒÔ0¿ª¹ØÇÒµÚ¶þλ²»Îªx,ÔòÈÃΪÊǰ˽øÖÆ£¬£¨ÒòΪ°Ë½øÖƲ»ÄÜÓÐ8£¬9ËùÒÔ±¨´í·µ»Ø0£©¡£ Èç¹ûÒÔ1¿ªÍ·¾ÍÒÔÊ®½øÖÆ£¬ËùÒÔ10ÒÔºó¾ÍÓÖÊǶԵÄÁËËùÒÔ£¬ÔÚÎÒÃÇÓÃʱ»¹ÊÇÃ÷È·Ö¸¶¨½øλÖÆ£¬ÒÔ·À³ö´í¡£ ÈçÎÒÃÇƽʱ¶¼ÓÃÊ®½øÖÆ룬ÎÒÃÇ¾Í parseInt("08", 10);
ËùÒÔ£¬¾Í´íÁË£¬ÔÚÒÔºóÓõ½µÄʱºò×îºÃÔÚparseIntÕâ¸öº¯ÊýºóÃæ¼ÓÉϽøÖÆÊý£¬±£Ö¤²»³ö´í£¬²»È»£¬Óֵòî´íºÃ¼¸¸öСʱ¡££¡£¡£¡£¡£¡£¡£¡£¡£¡£¡


Ïà¹ØÎĵµ£º

javascriptµÄdelete

¸Õ¸Õ°Ý¶ÁÁË JavascriptµÄ±äÁ¿Óëdelete²Ù×÷·û ºÜÊÜÆô·¢¡£Ô­ÎÄֻ˵Á˽á¹û£¬Ã»¸üÉîÈëÍÆÀí×ܽáÒ»ÏÂΪʲô£¬ÒÔ¼°ÔõôÀí½âºÃÒ»µã£¬ÎÒÕâÀï²¹³ä×ܽáһϡ£
 /// <reference path="http://tech.idv2.com/2008/01/09/javascript-variables-and-delete-operator/" />
/*
Óëc++²»Í¬£¬javascriptµÄdelete²»»áɾ³ ......

javascript¶¨Òå¶þάÊý×éµÄ·½·¨

javascript¶¨Òå¶þάÊý×éµÄ·½·¨ javascript±¾ÉíÖ»Ö§³ÖһάÊý×飬
ÓÐʱ·ÇÒªÓõ½¶þάÊý×éµÄʱºò£¬ ¿ÉÒÔ½«Ò»Î¬Êý×éµÄ·ÖÏîÓÖ¶¨ÒåΪһ¸öÊý×飬 ¶þάÊý×é¾ÍÊÇÓÃÊý×é¹¹³ÉµÄÊý×é
Var aa=new Array(); //¶¨ÒåһάÊý×é
for(i=1;i<=10;i++)
{
      aa[i]=new Array(); //½«Ã¿Ò»¸ö×ÓÔªËØÓÖ¶¨ÒåΪÊý ......

ÓÃJavascriptÖÆ×÷Õ¾ÄÚËÑË÷Æ÷

ÓÃJavaScript×öµÄÕ¾ÄÚËÑË÷²»½ö±à³ÌʵÏÖ¡¢Î¬»¤ÆðÀ´ºÜ¼òµ¥£¬¶øÇÒËüÄÜÔÚ¿Í»§¶Ëä¯ÀÀÆ÷Ö±½ÓÖ´ÐУ¬ÎÞÐë·þÎñÆ÷µÄÖ§³Ö£¬Ò²¿ÉÒÔÊ¡È¥ÉêÇëÓнű¾Ö´ÐÐȨÏÞ¿Õ¼äµÄÂé·³¡£ËùÒÔ£¬Ö»ÒªÄãÔ¸Ò⶯ÊÖ£¬ÓиöÈËÖ÷Ò³¾ÍÄÜÓÐ×Ô¼ºµÄÕ¾ÄÚËÑË÷¡£ÏÂÃæÈÃÎÒÃǹ²Í¬À´×öÒ»¸ö»ùÓÚJavaScriptµÄÕ¾ÄÚËÑË÷µÄ½Å±¾£¬¿É²»ÒªÐ¡¿´Ëü£¬×öÍêÁËÄã¾ÍÖªµÀËüµÄºÃ´¦ÁË¡£
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ