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

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

ugmbbc·¢²¼ÓÚ 2009-11-14 09:41:43| 7628 ´ÎÔĶÁ ×ÖÌ壺´ó С ´òÓ¡Ô¤ÀÀ
var ReTitle = '»Ø¸´:Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â';
¸ÐлCOMSHARP CMSµÄͶµÝ
ÐÂÎÅÀ´Ô´:tripwiremagazine.com
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ JavaScript ¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øͬʱ£¬ÈËÃÇÔÚÖÚ¶à JavaScript ¿âÃæÇ°ÓÖ¾õµÃÎÞËùÊÊ´Ó£¬±¾ÎÄ£¬ÎÒÃǽ«Ê¹Óà Google ËÑË÷³öÅÅÃûÇ° 10 λµÄ JavaScript ¿â£¬²¢¶ÔËüÃÇÖðÒ»½øÐнéÉÜ¡£
1. jQuery: The Write Less, Do More, JavaScript Library
jQuery ÊÇÒ»¸öºÜÐ嵀 JavaScript ¿â£¬ËüµÄ¿ÚºÅÊÇ“¼¸ÐдúÂ룬ÄܸɴóÊ”£¨Write Less, Do More£©£¬ËüÊÇÓµÓÐ×î¶à²å¼þºÍÀ©Õ¹µÄ JavaScript ¿â£¬ÒÔÏÂÊÇ jQuery ÏÖ×´£º
µ±Ç°°æ±¾£º 1.3.2
Îļþ³ß´ç£ºÑ¹Ëõºó×îС19KB£¬Î´Ñ¹ËõΪ120K¡£
×÷Õߣº John Resig
ÓµÓÐ19ÖÖÓïÑԵĽ̳Ì: ½Ì³Ì×ܼÆ183ÖÖ¡£
ÖøÃûÓû§£º ³¬¹ý1000¸ö
²å¼þ: 3493
Ò×ѧ
¶ÔÉè¼ÆʦÀ´Ëµ·Ç³£Ò×ѧ£¬Ê¹Óà CSS Óï·¨
ÓµÓдóÁ¿ÓÐȤµÄÀ©Õ¹
ÓµÓзdz£³öÉ«µÄÉçÇø£¬¿ÉÄÜÊÇ×î´óµÄ
±»ÊýÒÔ°ÙÍòµÄÕ¾µãʹÓ㬰üÀ¨ÖîÈç Google, Dell, CBS, NBC, DIGG, Bank of America, Wordpress, Drupal, Mozilla µÈÖøÃûÕ¾µã¡£
2. MooTools – a compact javascript framework

MooTools ÊÇÒ»¸öʹÓà MIT Ðí¿ÉµÄ¿ªÔ´ÏîÄ¿£¬Òâζ×ÅÄã¿ÉÒÔÔÚÈÎÒ»³¡ºÏʹÓûò¶ÔËü¾ÍÐÐÐ޸ġ£
µ±Ç°°æ±¾: 1.2.3
δѹËõ³ß´ç: 95 KB (¿Í»§¶Ë) £¬22 KB (·þÎñÆ÷¶Ë)
×÷Õß: Valerio Proietti
ÖøÃûÓû§: w3c, cnet, bing, …
¹Ù·½Õ¾ÉϵIJå¼þÊýÄ¿: 4
ÓµÓиüºÃµÄÃæÏò¶ÔÏó½á¹¹
ËüµÄ¶¯»­Ð§¹û¸üƽ»¬
Óï·¨¼°¶ÔÏó¾ä±ú¸ü¸»Âß¼­
3. Prototype: Easy Ajax and DOM manipulation for dynamic web applications
±»Ò»Ð©´óÐÍýÌ幫˾ºÍ×é֯ʹÓã¬Protorype ÊÇÒ»¸öºÜ¶ÀÌØµÄ JavaScript ¿â£¬Öð½¥³ÉΪ Web ÒýÓÿª·¢ÕߵĴúÂë»ù´¡£¬Ëæ×Å×îÐ嵀 1.6.1 °æ±¾µÄÍƳö£¬Protorype ÔÚÐÔÄÜ£¬Óû§×Ô¶¨ÒåʼþÒÔ¼°Í¬ÏÖ´úä¯ÀÀÆ÷¼æÈÝ·½ÃæÔ½À´Ô½ÍêÉÆ¡£
×îа汾: 1.6.1
δѹËõ³ß´ç: 136 KB (´óÔ¼5000ÐдúÂë)
×÷Õß: Sam Stephenson
ÖøÃûÓû§: NASA, CNN, NBC, …
²å¼þÊýÄ¿: 150+
¸üÊÊÓÃÓÚ´óÐÍ Web ³ÌÐò
4. Dojo Toolkit: great experiences for everyone
Dojo µÄÄÚºËСÇÉ£¬¿ì£¬¾«É¿ÉÓÃÀ´´´½¨·´Ó¦ÁéÃôµÄ Web ³ÌÐò


Ïà¹ØÎĵµ£º

javascript String2

javascriptÖÐÓÐÒ»ÖÖ·½·¨½Ð×ö·º»¯·½·¨£¬Ö¸ÄÇÖÖÔ­Éú¶ÔÏ󲻿ɱéÀúµÄÔ­ÐÍ·½·¨¡£ÈçArrayµÄpop£¬sliceµÈ¡£ÎÒÃDZØÐëÖªµÀËüÃǵÄÃû×Ö²ÅÄܵ÷ÓÃËü»òÕß°ÑËüÍÚ³öÀ´¡£¼ÙÈçÎÒÃÇÏëÉè¼ÆÒ»¸öÀ࣬ӵÓÐÓëStringͬÑùµÄ¹¦ÄÜ£¬ÎÒÃǾÍÓÐÕâÐèÒª¡£²»Èç·Å¿ªµã˵£¬ÎªÊ²Ã´ÒªÉè¼ÆÕâ¸öÀà°É£¬ÏÔÈ»String2µÄЧÂʲ»ÈçÔ­ÉúµÄ£¬µ«ÊÂÇé×ÜÒªÍùÁ½Ãæ¿´¡£ÕýÈçC#²»Èç¶þ ......

´Ó¡¶JavaScript Dom ±à³ÌÒÕÊõ¡·¿´µ½µÄ

     Ç°¼¸Ì죬ÔÚͼÊé¹Ý¿´ÁËÒ»±¾Êé½Ð¡¶JavaScript Dom ±à³ÌÒÕÊõ¡·´ÓÖг¢µ½ºÜ¶à֪ʶ»òÕß³ÆÆäΪ·½·¨£¬ÓÉÓÚÒ»Ö±ÔÚ棬ûÓÐʱ¼äд³öÀ´·ÖÏí¸ø´ó¼Ò£¬½ñÌìÕýºÃÓеãʱ¼äËùÒÔ¾Íд³öÀ´°É£¬Õâ±¾ÊéµÄ×÷ÕßJeremy Keith ÎÒÒÔǰûÓÐÌýµ½¹ýÕâ¸öÈË£¬´ËÊéÖоÍÒ»¶Î»°ÊÇ˵“ÎÞÂÛºÎʱµØ£¬¶¼Òª°Ñ‘Ñ­Ðò½¥½ø’ºÍ ......

ÈÃeval()È«¾Ö×÷ÓÃÓòÖ´Ðеķ½·¨ÉîÈëÑо¿(javascript)

 
eval(str)
ÓÃÀ´´«ÈëÒ»¸ö×Ö·û´®¶¯Ì¬Ö´ÐÐÒ»¶Î½Å±¾£¬Õâ¸ö·½·¨·Ç³£ÓÐÓᣵ±Ö±½ÓÓÃeval()ʱ£¬×÷ÓÃÓòΪµ±Ç°×÷ÓÃÓò£¬ÓÐʱºòÎÒÃÇÐèÒªÈÃËüÔÚÈ«¾Ö×÷ÓÃÓò·¶Î§ÄÚÖ´ÐУ¬±ÈÈç
ajax·µ»ØµÄ½Å±¾×Ö·û´®£¬È»¶øä¯ÀÀÆ÷¶ÔevalµÄ²îÒì¿ÉÄÜʹÊÂÇé¸Õ¿ªÊ¼²¢²»ÊÇÄÇô˳Àû£¬±¾ÎÄͨ¹ýÔÚ7ÖÖä¯ÀÀÆ÷(IE, Firefox,
Chrome, Safari, Opera£©»·¾³Öвâ ......

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ºÅ