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

javascript String2

javascriptÖÐÓÐÒ»ÖÖ·½·¨½Ð×ö·º»¯·½·¨£¬Ö¸ÄÇÖÖÔ­Éú¶ÔÏ󲻿ɱéÀúµÄÔ­ÐÍ·½·¨¡£ÈçArrayµÄpop£¬sliceµÈ¡£ÎÒÃDZØÐëÖªµÀËüÃǵÄÃû×Ö²ÅÄܵ÷ÓÃËü»òÕß°ÑËüÍÚ³öÀ´¡£¼ÙÈçÎÒÃÇÏëÉè¼ÆÒ»¸öÀ࣬ӵÓÐÓëStringͬÑùµÄ¹¦ÄÜ£¬ÎÒÃǾÍÓÐÕâÐèÒª¡£²»Èç·Å¿ªµã˵£¬ÎªÊ²Ã´ÒªÉè¼ÆÕâ¸öÀà°É£¬ÏÔÈ»String2µÄЧÂʲ»ÈçÔ­ÉúµÄ£¬µ«ÊÂÇé×ÜÒªÍùÁ½Ãæ¿´¡£ÕýÈçC#²»Èç¶þ½øÖƵĻúÆ÷Â룬µ«ÈËÐÔ»¯·½ÃæC#ÔòԶʤ¹ýºóÕß¡£ÄÇôÄѵÀString²»¹»ÈËÐÔ»¯Â𣿺ÜÄѻشðÕâÎÊÌ⣬µ«Èç¹ûÎÒÃÇÒª¶ÔËü½øÐÐһЩÌØÊâµÄ²Ù×÷£¬Èçcamelize£¬capitalize»òÕßtrimµÈ²Ù×÷ʱ£¬ÎÒÃǾÍÐèÒªÏàÓ¦µÄ¸ß¼¶·½·¨¡£Í¨³£ÈËÃǵÚÒ»¸öÊÇÏëµ½ÍùÔ­ÐÍÖÐÌí¼Ó¡£µ«¶ÔÔ­Éú¶ÔÏóµÄÔ­ÐÍÌí¼ÓÀ©Õ¹ÊDz»ºÃµÄÏ°¹ß£¬ÒòΪÕâ·½ÃæµÄ¹¤×÷PrototypeÓëmootoolsÒÑΪÄã×öÁË¡£Èç¹ûÄãµ¼ÈëÕâЩ¿â»òÕßÓÐÒ»ÌìÄãÍüÁË£¬Ã»Óп´API£¬ÔÚÔ­Ð͸´Ð´ÁËÕâЩ·½·¨£¬ÕâÒýÆðµÄÁ¬Ëø·´Ó¦ÓëÔÖÄÑÊÇÄÑÒÔÏëÏóÒ²ºÜÄѲ龿¡£ÕâÕýÊÇjQuery´ÏÃ÷µÄµØ·½¡£jQuery¸Õµ®Éúʱ£¬Êг¡»ù±¾±»PrototypeÕ¼ÁìÁË£¬ÏÖÔÚPrototypeÔÚÍâ¹ú»¹ÊÇÖ÷Á÷µÄjs¿ò¼Ü£¬Ðí¶àÒÅÁôϵͳ¶¼ÓÃËüÀ´Ð´Ç°¶Ë¡£Èç¹ûjQuery»¹ÊÇ×ßËüÃǵÄÀÏ·£¬µ½´¦ÎÛȾ£¨À©Õ¹£©Ô­Éú¶ÔÏó£¬Õâ»á¸ø¿ª·¢ÈËÔ±´øÀ´ÄÑÌ⣬ÓõÃÁËjQuery¾Í²»ÄÜÓÃPrototype»òmootools£¬»òÕßÏà·´¡£ÔÚPrototypeÈç´Ë³ÉÊìµÄ¿ò¼ÜÃæÇ°£¬jQueryÖ»ÓÐËÀ·һÌõ¡£jQueryÓÚÊÇ°Ñʲô¹¦Äܶ¼°ó¶¨ÔÚjQueryÕâ¸öº¯ÊýÉÏ£¬Á¬$Ò²ÊÇ¿ÉÖû»µÄ¡£ÕâÇéÐÎÓëjavaµÄSpring²î²»¶à¡£²»¹ýjQueryµÄȱÏݺÜÃ÷ÏÔ£¬¼Ì³ÐÌåϵºÜ±¡Èõ£¬ËùÓÐÄÜÁ¦¶¼ÓÃÓÚ´¦ÀíDOM¡£Èç¹û´¦ÀíString£¬Ëü¾Í²»ÄÜÏñÒÔÍùÒ»ÑùÁ´Ê½²Ù×÷ÁË¡£

for(var i in Array){
alert(i + " : "+ Array[i])
}
for(var i in Array.prototype){
alert(i + " : "+ Array.prototype[i])
}


for(var i in Array){
alert(i + " : "+ Array[i])
}
for(var i in Array.prototype){
alert(i + " : "+ Array.prototype[i])
}

ÔËÐдúÂë
Èç¹ûÎÒÃDz»ÏëÔÚStringµÄÔ­ÐÍÌí¼Óз½·¨£¬ÓÖÏëÁ´Ê½²Ù×÷£¨¼´ÔÚ·µ»ØµÄÊÇ×Ö·û´®Ê±£©£¬Õâ»ù±¾Ã»ÓпÉÄÜ¡£Ô­ÐÍ·½·¨×î´óÌص㣬ΧÈÆthis½øÐвÙ×÷¡£Èç¹ûthisµÄÀàÐÍÓÖÊÇstring,number£¬ÕæÊÇÎÞ´ÓÈëÊÖ¡£¿´Á˼¸ÌìBase2µÄ´úÂ룬×îºóÒÔʧ°Ü¸æÖÕ¡£²»¹ýÔ­×÷Õß»¹ÊÇûÓÐʵÏÖ×Ö·û´®µÄÁ´Ê½²Ù×÷¡£×îºóµÄ°ì·¨ÊÇ×Ô¼º´´½¨Ò»¸ö¿Õ¶ÔÏ󣬰ÑStringµÄÔ­ÐÍ·½·¨Óë×Ô¼ºÏëÌí¼ÓµÄ·½·¨¶¼Ìí¼Óµ½´Ë¶ÔÏóµÄÔ­ÐÍÉÏ¡£

var big = String.prototype["big"];
var e = "this"
var a = big.call(e);
alert(a)


var big = String.prototype["big"];
var


Ïà¹ØÎĵµ£º

תÔØ JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ

 1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" onc ......

Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â

 ÐÂÎÅÀ´Ô´:tripwiremagazine.com
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ
JavaScript ¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øͬʱ£¬ÈËÃÇÔÚÖÚ¶à JavaScript ¿âÃæÇ°ÓÖ¾õµÃÎÞËùÊÊ´Ó£¬±¾ÎÄ£¬ÎÒÃǽ«Ê¹ÓÃ
Google ËÑË÷³öÅÅÃûÇ° 10 λµ ......

JavaScript ÁãÉ¢±Ê¼Ç

JavaScript ÁãÉ¢±Ê¼Ç
1 ´´½¨½Å±¾¿é
1: <script language=”JavaScript”>
2: JavaScript code goes here
3: </script>
2 Òþ²Ø½Å±¾´úÂë
1: <script language=”JavaScript”>
2: <!--
3: document.write(“Hello”);
4: // -->
5: </script>
ÔÚ²»Ö ......

Top 10 JavaScript Frameworks by Google

 À´×Ô£ºhttp://www.tripwiremagazine.com/tools/developer-toolbox/top-10-javascript-frameworks-by-google.html
Wed, Nov 11, 2009
Development
, Javascript
, Tools




JavaScript – an indispensable part for developing websites and web
pages, whether th ......

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

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