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

Ê® ¸ö×îÎÅÃûµÄ JavaScript ¿â

 JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖÐȱһ²»¿ÉµÄ»õÉ«£¬²»¹ÜÊÇÒ»¸ö¼òÂÔµÄÍøÒ³ÈÔÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²±Â¹ÜÄãÊǺÃÊÖÈÔÊDzËÄñ£¬ÏÖ½ñ JavaScript ¿âÓúÀ´ÓúÇ¿´ó£¬¿ÉÒÔʤÈκöิÔӵŤ×÷£¬È»ÔòÓë´Ëͬʱ£¬ÖÚÈËÔÚ·ºÀÄ JavaScript ¿âÑÛÇ°ÓÖ¾õ×Ų»ÖªËù´ë£¬ÕýÎÄ£¬ÎÒÃǽ«Ó¦Óà Google ËÑÑ°³öÅÅÐÐÇ° Ê® λµÄ 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 Óï·¨
•ÓµÓдóÁ¿ÓÐȤµÄÀ©³ä
•ÓµÓÐÊ®·Ö׿ԽµÄÉçÇø£¬¿ÉÄÜÊÇ×î´óµÄ
•±»ÊýÒÔ°ÙÍòµÄÕ¾µãÓ¦Ó㬰üÀ¨Æ©Èç 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
•ÎÅÃûÓû§: wÈýc, cnet, bing, …
•¹Ù·½Õ¾ÉϵIJå¼þÊý¶î: ËÄ
•ÓµÓиüºÃµÄÃæÁÙ¶ÔÏó¹¹Ôì
•ËüµÄ¿¨Í¨Æ¬³ÉЧ¸üƽ»¬
•Óï·¨¼°¶ÔÏó¾ä±ú¸ü¸»Âß¼­
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 ³ÌÐò£¬ÓµÓкܽܳöµÄ UI ¹¤¾ß£¬ÔÚ¿É·ÃÎÊ


Ïà¹ØÎĵµ£º

javascript ÏÞÖÆÖ»ÄÜÊäÈëÊý×Ö

  <input type=text onkeypress="return event.keyCode>=48&&event.keyCode<=57||(this.value.indexOf('.')<0?event.keyCode==46:false)" onpaste="return !clipboardData.getData('text').match(/\D/)" ondragenter="return false">
<asp:TextBox ID="TextBox1" runat="server" onkeyu ......

JavaScriptÖеÄindexOf·½·¨

1.¶ÔÓÚÊý×飬ÎÒÃÇ¿ÉÒÔ×Ô¼ºÐ´Ò»¸öindexOf()·½·¨:
[].indexOf || (Array.prototype.indexOf = function(v){
for(var i = this.length;i-- && this[i] !== v;);
return i; });
ʹÓ㺠var array = new Array();
array = ...;
if(array.ind ......

JavascriptÖÐEventÊôÐԺͷ½·¨

 EventÊôÐԺͷ½·¨£º
1. type£ºÊ¼þµÄÀàÐÍ£¬ÈçonlickÖеÄclick£»
2. srcElement/target£ºÊ¼þÔ´£¬¾ÍÊÇ·¢ÉúʼþµÄÔªËØ£»
3. button£ºÉùÃ÷±»°´ÏµÄÊó±ê¼ü£¬ÕûÊý£¬1´ú±í×ó¼ü£¬2´ú±íÓÒ¼ü£¬4´ú±íÖмü£¬Èç¹û°´Ï¶à¸ö¼ü£¬¾Æ°ÑÕâЩֵ¼ÓÆðÀ´£¬ËùÒÔ3¾Í´ú±í×óÓÒ¼üͬʱ°´Ï£»£¨firefoxÖÐ 0´ú±í×ó¼ü£¬1´ú±íÖмä¼ü£¬2´ú±íÓÒ¼ü£© ......

ÔõÑù¶Ô.netÖеÄjavascript½Å±¾½øÐе÷ÊÔ£¿

µÚÒ»²½£ºÔÚIEµÄ“InternetÉèÖÔÖÐÑ¡Ôñ“¸ß¼¶”——“°²È«”——“ÆôÓü¯³ÉwindowsÉí·ÝÑéÖ¤”¡£
µÚ¶þ²½£ºÔÚÐèÒªµ÷ÊÔµÄÒ³ÃæµÄ½Å±¾ÖмÓÉÏdebugger; È»ºóÔËÐÐÕâ¸öÒ³Ã棬¾Í»áÔÚÕâÀïÍ£ÏÂÀ´
ÀýÈ磺
function BtnSubmit_Click()
{
var aaa;
aaa='aaa';
debugg ......

ת£ºÎò͸JavaScript

żµÃ±¾ÄÚÈÝ£¬¸Ð¾õдµÃºÜÊDz»´í£¬ÌØתÀ´Óë´ó¼Ò·ÖÏí
Èí¼þ˼Ï뾫ƷϵÁÐ
Îò͸ JavaScript
Ô­Öø£ºÀîÕ½(leadzen)
http://www.cndev.org
http://www.cnblogs.com/leadzen
1
Òý×Ó
±à³ÌÊÀ½çÀïÖ»´æÔÚÁ½ÖÖ»ù±¾ÔªËØ£¬Ò»¸öÊÇÊý¾Ý£¬Ò»¸öÊÇ´úÂë¡£±à³ÌÊÀ½ç¾ÍÊÇÔÚÊý¾ÝºÍ´úÂëǧ˿ÍòÂƵľÀ²øÖгÊÏÖ³öÎÞÏÞµÄÉú»úºÍ»î
Á¦¡£
Êý¾ÝÌìÉú¾ÍÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ