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

JavaScript³£Óú¯ÊýÒÔ¼°Óï·¨

 .×Ö·û´®(String)
1.ÉùÃ÷
     var myString = new String("Every good boy does fine.");
     var myString = "Every good boy does fine.";
   2.×Ö·û´®Á¬½Ó
     var myString = "Every " + "good boy " + "does fine.";
     var myString = "Every ";   myString += "good boy does fine.";
   3.½ØÈ¡×Ö·û´®
     //½ØÈ¡µÚ 6 λ¿ªÊ¼µÄ×Ö·û
     var myString = "Every good boy does fine.";
     var section = myString.substring(6);     //½á¹û: "good boy does
fine."
   
     //½ØÈ¡µÚ 0 λ¿ªÊ¼ÖÁµÚ 10 λΪֹµÄ×Ö·û
     var myString = "Every good boy does fine.";
     var section = myString.substring(0,10); //½á¹û: "Every good"
   
     //½ØÈ¡´ÓµÚ 11 λµ½µ¹ÊýµÚ 6 λΪֹµÄ×Ö·û
     var myString = "Every good boy does fine.";
     var section = myString.slice(11,-6);     //½á¹û: "boy does"
   
     //´ÓµÚ 6 λ¿ªÊ¼½ØÈ¡³¤¶ÈΪ 4 µÄ×Ö·û
     var myString = "Every good boy does fine.";
     var section = myString.substr(6,4);      //½á¹û: "good"
   4.ת»»´óСд
     var myString = "Hello";
     var lcString = myString.toLowerCase();   //½á¹û: "hello"
     var ucString = myString.toUpperCase();   //½á¹û: "HELLO"
   5.×Ö·û´®±È½Ï
     var aString = "Hello!";
     var bString = new String(&q


Ïà¹ØÎĵµ£º

×ªÔØ 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 ......

ÈçºÎͨ¹ýJavaScriptº¯Êý»ñÈ¡Web±¨±íµ¥Ôª¸ñµÄÖµ

±¨±íÕ¹ÏÖÔÚwebÒ³ÃæÒÔºó£¬ÓÐʱÐèÒª»ñȡijµ¥Ôª¸ñµÄÖµ¡£ÈóǬ±¨±íÖпÉÒÔͨ¹ýÔÚjspÒ³ÃæÖÐÉ趨JavaScriptº¯ÊýÀ´ÊµÏÖÕâ¸ö¹¦ÄÜ¡£ÏÂÃæ¾Íͨ¹ýÒ»¸öÏÂÀý×Ó¼òµ¥½éÉÜÒ»ÏÂÈçºÎͨ¹ýJavaScriptº¯Êý»ñÈ¡Web±¨±íµ¥Ôª¸ñµÄÖµ¡£
Ê×ÏÈ£¬½«·¢²¼±¨±íµÄjspÒ³ÃæÖеı¨±í±êÇ©<report:html>·ÅÔÚÒ»¸ö<table>±êÇ©ÖУ¬ÈçÏÂͼ
ÆäÖÐ<report:h ......

Google¿ªÔ´JavaScript¹¤¾ß Closure

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

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 ÍøÒ³±³¾°Í¼Æ¬Ëæ»ú»¯

 µ¥µ÷µÄÍøÕ¾Ê×Ò³±³¾°¿´¶àÁ˲»ÃâÓÐдÑá·³£¬Èç¹ûÓû§×Ô¼ºÃ¿Ë¢ÐÂÒ»´ÎÒ³Ãæ±³¾°¿ÉÒÔ¸ü»»Ò²ÐíÄÜΪÕâÖÖµ¥µ÷Ìíһ˿µÄÐÂÆæ¡£ÕâÖ»ÐèÓÃÒ»¸öJavaScript·½·¨¾Í¿ÉÒԸ㶨£¬Í¨¹ýËæ»úº¯ÊýÔÚÎÒÃǵÄÒ»×éͼƬÖÐËæ»úµÄѡһÕÅ×÷Ϊ±³¾°¡£
ÏÂÃæÊÇJavaScript´úÂ룺
view plaincopy to clipboardprint?
<mce:script type="text/javascript" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ