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

JavascriptÖÐURL±àÂë·½·¨µÄ±È½Ï

URL±àÂë·½·¨µÄ±È½Ï javascriptÖдæÔÚ¼¸ÖÖ¶Ô Technorati ±êÇ©: JavaScript,url,±àÂë URL×Ö·û´®½øÐбàÂëµÄ·½·¨£ºescape()£¬encodeURI()£¬ÒÔ¼°encodeURIComponent()¡£Õ⼸ÖÖ±àÂëËùÆðµÄ×÷Óø÷²»Ïàͬ¡£ escape() ·½·¨£º ²ÉÓÃISO Latin×Ö·û¼¯¶ÔÖ¸¶¨µÄ×Ö·û´®½øÐбàÂë¡£ËùÓеĿոñ·û¡¢±êµã·ûºÅ¡¢ÌØÊâ×Ö·ûÒÔ¼°ÆäËû·ÇASCII×Ö·û¶¼½«±»×ª»¯³É%xx¸ñʽµÄ×Ö·û±àÂ루xxµÈÓÚ¸Ã×Ö·ûÔÚ×Ö·û¼¯±íÀïÃæµÄ±àÂëµÄ16½øÖÆÊý×Ö£©¡£±ÈÈ磬¿Õ¸ñ·û¶ÔÓ¦µÄ±àÂëÊÇ%20¡£ ²»»á±»´Ë·½·¨±àÂëµÄ×Ö·û£º @ * / + encodeURI() ·½·¨£º °ÑURI×Ö·û´®²ÉÓÃUTF-8±àÂë¸ñʽת»¯³Éescape¸ñʽµÄ×Ö·û´®¡£ ²»»á±»´Ë·½·¨±àÂëµÄ×Ö·û£º! @ # $& * ( ) = : / ; ? + ' encodeURIComponent() ·½·¨£º °Ñ URI×Ö·û´®²ÉÓÃUTF-8±àÂë¸ñʽת»¯³Éescape¸ñʽµÄ×Ö·û´®¡£ÓëencodeURI()Ïà±È£¬Õâ¸ö·½·¨½«¶Ô¸ü¶àµÄ×Ö·û½øÐбàÂ룬±ÈÈç / µÈ×Ö·û¡£ËùÒÔÈç¹û×Ö·û´®ÀïÃæ°üº¬ÁËURIµÄ¼¸¸ö²¿·ÖµÄ»°£¬²»ÄÜÓÃÕâ¸ö·½·¨À´½øÐбàÂ룬·ñÔò / ×Ö·û±»±àÂëÖ®ºóURL½«ÏÔʾ´íÎó¡£ ²»»á±»´Ë·½·¨±àÂëµÄ×Ö·û£º! * ( ) ' Òò´Ë£¬¶ÔÓÚÖÐÎÄ×Ö·û´®À´Ëµ£¬Èç¹û²»Ï£Íû°Ñ×Ö·û´®±àÂë¸ñʽת»¯³ÉUTF-8¸ñʽµÄ£¨±ÈÈçÔ­Ò³ÃæºÍÄ¿±êÒ³ÃæµÄcharsetÊÇÒ»ÖµÄʱºò£©£¬Ö»ÐèҪʹÓà escape¡£Èç¹ûÄãµÄÒ³ÃæÊÇGB2312»òÕßÆäËûµÄ±àÂ룬¶ø½ÓÊܲÎÊýµÄÒ³ÃæÊÇUTF-8±àÂëµÄ£¬¾ÍÒª²ÉÓÃencodeURI»òÕß encodeURIComponent¡£ ÁíÍ⣬encodeURI/encodeURIComponentÊÇÔÚjavascript1.5Ö®ºóÒý½øµÄ£¬escapeÔòÔÚjavascript1.0°æ±¾¾ÍÓС£


Ïà¹ØÎĵµ£º

JavaScript¿ª·¢¹¤¾ß£ºClosure Tools

ÎÄÕÂÀ´×Ô£ºhttp://www.oschina.net/p/closure
Google¿ªÔ´ÁËÆäÄÚ²¿Ê¹ÓõÄJavaScript¿ª·¢¹¤¾ß£¬Ï£Íû°ïÖúÍⲿ³ÌÐòÔ±¿ª·¢³öËٶȸü¿ìµÄWebÓ¦ÓóÌÐò¡£GoogleÈÏΪͨ¹ýÔÊÐí¿ª·¢ÕßʹÓÃGoogle×Ô¼ºËùÓõŤ¾ß£¬ËûÃDz»½ö¿ÉÒÔ´´Ôì³ö¸ü¿ìµÄ¸»WebÓ¦ÓóÌÐò£¬¶øÇÒÄÜÕæÕýÈÃWeb²åÉϳá°ò¡£Closure JavaScript±àÒëÆ÷ºÍ¿âÔø±»GoogleÓÃÓÚ¿ª·¢Gmail ......

firefoxÓëIE¼æÈÝjavascriptºÍCSS


css:
1.   
ul±êÇ©ÖÐFFÖÐÓиöpaddingÖµ£¬È´Ã»ÓÐmarginÖµ£¬¶øÔÚIEÖÐÕýºÃÏà·´   
½â¾ö°ì·¨:½«ulµÄpaddingºÍmargin¶¼ÉèΪ0(Ò²¿ÉÒÔ²»ÊÇ0)È磺padding:0;margin:0;list-style:none;   
ÁíÍâformĬÈÏÔÚIEÖÐÒ²»áÓÐmarginÖµ£¬ËùÒÔ×îºÃÒ²½«ÆämarginºÍpaddingÉèΪ0   
2.    ......

JavaScript×Ö·û´®º¯Êý´óÈ«

http://blog.csdn.net/cyai/archive/2009/05/25/4213956.aspx 
JS×Ô´øº¯Êý
concat
½«Á½¸ö»ò¶à¸ö×Ö·ûµÄÎı¾×éºÏÆðÀ´£¬·µ»ØÒ»¸öеÄ×Ö·û´®¡£
var a = "hello";
var b = ",world";
var c = a.concat(b);
alert(c);
//c = "hello,world"
indexOf
·µ»Ø×Ö·û´®ÖÐÒ»¸ö×Ó´®µÚÒ»´¦³öÏÖµÄË÷Òý£¨´Ó×óµ½ÓÒËÑË÷£©¡£Èç¹ûÃ»Ó ......

¾«Í¨JavaScript —— º¯ÊýÖØÔغÍÀàÐͼì²é


ÆäËüÃæÏò¶ÔÏóµÄÓïÑÔÈçJAVAµÄÒ»¸ö³£¼ûÌØÐÔÊÇ£¬¸ù¾Ý´«ÈëµÄ²»Í¬ÊýÁ¿»òÀàÐ͵ģ¬Í¨¹ýÖØÔØ(overload) À´·¢»Ó²»Í¬µÄ¹¦Ó᣾¡¹ÜÕâ¸öÌØÐÔÔÚJavaScriptÖв¢Ã»ÓÐÖ±½ÓÖ§³Ö£¬Ò²Óкܶà°ì·¨Äܹ»ÊµÏÖ¡£
º¯ÊýÖØÔØ£¨function overloading£©±ØÐëÒÀÀµÁ½¼þÊÂÇ飺Åжϴ«Èë²ÎÊýµÄÊýÁ¿µÄÄÜÁ¦ºÍÅжϴ«Èë²ÎÊýÀàÐ͵ÄÄÜÁ¦¡£
JavaScript掅 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ