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

JavaScript ²âÊÔ¼°Ð£Ñ鹤¾ß

JavaScript ÊÇÒ»¿îÇ¿´óµÄ¹ã·ºÔËÓÃÓÚÏÖ´úWebÕ¾µã¼°Ó¦ÓõĽű¾ÓïÑÔ¡£×÷Ϊһ¸ö¼¼ÒÕ¾«Õ¿µÄ Web ¿ª·¢Õߣ¬ÕÆÎÕJavaScript¿ÉÒÔÔöÇ¿Óû§µÄʹÓÃÌåÑ飬Ìṩ½»»¥¼°¸»¿Í»§¶ËµÈ¹¦ÄÜ¡£
¾¡¹ÜJavaScript µÄÓï·¨·Ç³£¼òµ¥£¬µ«¶ÔÓÚд³ÌÐò¶øÑÔÈÔÈ»ÊÇÀ§ÄÑÖØÖØ£¬¾ÍÊÇÒòΪËüµÄÔËÐл·¾³£º»ùÓÚWebä¯ÀÀÆ÷¡£
ÒÔÏÂÄú¿ÉÒÔ¿´µ½ÊÕ¼¯µÄ8¸öʵÓÃµÄ JavaScript ²âÊÔ¼°Ð§Ñ鹤¾ß£¬ËüÃǶ¼¿ÉÒÔÔÚ²»Í¬»·¾³Ï½øÐе¥Ôª²âÊÔ¼°Ð£Ñé²âÊÔÄúµÄ½Å±¾¡£
JSLint
JSLintÊÇ»ùÓÚWebµÄÑéÖ¤JavaScript´íÎó´úÂëµÄ¹¤¾ß¡£ËüÓµÓеŦÄܼ°Ìض¨µÄÉèÖÃÀ´Ê¹ÓÃÄúµÄÐèÇó£¬×Ô¶¨ÒåÄãµÄÑéÖ¤Ëã·¨¡£
JsUnit
JsUnitÊÇÒ»¿îÔÚ¿Í»§¶Ë(ÔÚä¯ÀÀʱ)µÄµ¥Ôª²âÊÔJavaScript¿ò¼Ü¡£¶ÔJavaScript¶øÑÔ£¬JUnit¾ÍÏñÊÇËüµÄÒ»¸ö¶Ë¿Ú¡£µ±È»ËüÒ²¿ÉÒÔÔÚ¶à ¸öä¯ÀÀÆ÷¡¢¶à¸ö»úÆ÷µÄ²»Í¬²Ù×÷ϵͳÖÐ×Ô¶¯ÔËÐС£ËüµÄ·¢Õ¹Ê¼ÓÚ2001Äê1Ô¡£
J3Unit
J3UnitÊÇÒ»¸öÃæÏò¶ÔÏóµÄJavaScriptµ¥Ôª²âÊÔ¿ò¼Ü¡£J3UnitÔÚÍøÒ³ä¯ÀÀÆ÷ÖÐÖ±½ÓÔËÐÐJavaScriptµÄ²âÊÔ£¬Ò²¿ÉÒÔ×Ô¶¯ÔËÐÐ JUnit ºÍ Jetty¡£J3UnitÊǽ¨Á¢ÔÚJUintºÍScript.aculo.usµÄ»ù´¡Ö®ÉÏÀ´¸üºÃµØʵÏÖ×Ô¶¯ÔËÐÐJavaScript µ¥Ôª²âÊÔ¡£ÃæÏò¶ÔÏóµÄJavaScriptµ¥Ôª²âÊÔÊÇÓÉScript.aculo.usµÄTest.Unit.Runner¶ÔÏó±àдµÄ£¬»ùÓÚ prototype JavaScript¿â¡£
Crosscheck
CrosscheckÊÇÒ»¿î¿ªÔ´µÄУÑéä¯ÀÀÆ÷ÖеÄJavaScript²âÊÔ¿ò¼Ü¡£Ëü¿ÉÒÔ°ïÖúÄúÔÚ²»Í¬µÄä¯ÀÀÆ÷ÖУ¬ÖîÈ磺Internet Explorer¡¢FirefoxµÈ£¬¶ø²»ÐèÒªÒ» Ò»°²×°ËûÃÇÀ´È·ÈÏÄúµÄ´úÂëÊÇ·ñÕýÈ·¡£ÄúΨһÐèÒªµÄÊDZØÐëÒªÓÐJavaÐéÄâ»ú»·¾³¡£
YUI Test
YUI²âÊÔÊÇÒ»¿î»ùÓÚä¯ÀÀÆ÷£¬Ìṩ½â¾ö·½°¸µÄ²âÊÔ¿ò¼Ü¡£Ê¹ÓÃYUI£¬Äú¿ÉÒÔ·½±ãµØÌí¼Óµ¥Ôª²âÊÔ£¬Ñ°ÇóJavaScript½â¾ö·½°¸¡£ËüÊÇÓÉ Yahoo! UI Library¿ª·¢µÄÒ»¸öJavaScriptMVC²âÊÔ²å¼þ£¬Äܹ»ÈÃÄãÄ£·¶´ó²¿·ÖDOM¶¯×÷£¬±ÈÈçд£¬ÍÏק£¬±ÈÈçÄ£·¶AJAXÏìÓ¦£¬²¢ÇÒÄܹ»Ê¹ÓöÏÑÔ (assertions)¡£ËüÄܹ»Ïóº¯ÊýÒ»ÑùÔËÐУ¬²¢ÇÒÄܹ»ÔÚ²»Í¬µÄconsole´°¿Ú½øÐм¯³É²âÊÔ¡£ËäÈ»Ëü²»ÊÇÔÚÈκΠxUnit ¿ò¼Ü»ù´¡ÉÏ¿ª·¢¶øÀ´£¬µ«YUI TestÈÔÈ»ÓкܶànUnit ºÍ JUnitµÄËù¾ßÓеÄÌØÐÔ¡££¨ While not a direct port from any specific xUnit framework, YUI Test does derive some characteristics from nUnit and JUnit. Õâ¶Î·­ÒëµÃ²»ºÃ£¬µ«ÏàÐÅ´óÖÂÒâ˼ÊǶԵģ©¡£
Regular Expression Tool
Regular Expression Tool£¨ÕýÔò±í´ïʽ¹¤¾ß£©ÊÇÒ»¿îÔÚÏß¹¤¾ß£¬ÓÃÀ´²âÊÔÄúµÄÕýÔò±í´ïʽ´úÂëÊÇ·ñÕýÈ·¡£µ±ÄúÏë¿ìËÙ²âÊÔ¸÷ÖÖÎı¾Àý×ÓµÄÕýÔò±í´ïʽʱ·Ç³£µÃÐÄÓ¦ÊÖ¡£
JS


Ïà¹ØÎĵµ£º

javascript ÕýÔò


1 javascript ÕýÔò
¶ÔÏó´´½¨ ºÍÓ÷¨
ÉùÃ÷javascript ÕýÔò
±í´ïʽ
¸´ÖÆ´úÂë
´úÂëÈçÏÂ:

var reCat = new RegExp("cat");
ÄãÒ²¿ÉÒÔ
var reCat = /cat/; //Perl ·ç¸ñ £¨ÍƼö£©

2 ѧϰ×î³£ÓÃµÄ test exec match search replace split 6¸ö·½·¨
1£© test ¼ì²éÖ¸¶¨µÄ×Ö·û´®ÊÇ·ñ´æÔÚ
¸´ÖÆ´úÂë
......

javascriptµÄÏà¹Ø¼¼ÊõÎÄÕµÄÊÕ²Ø

±íµ¥Ð§¹û£ºhttp://www.sprymedia.co.uk/article/KeyTable
±íµ¥Ð§¹û£ºhttp://www.datatables.net/examples/
ͼ±íЧ¹û£º http://filamentgroup.com/dwpe/#codeexamples
ͼ±íЧ¹û£º http://people.iola.dk/olau/flot/examples/
±íµ¥Ð§¹û£ºhttp://www.reconstrukt.com/ingrid/src/example1.html#
Ê÷ÐÎĿ¼£ºhttp ......

javascript ½á¹¹ÌåʾÀý

<script>
///Óû§Êý¾Ý½á¹¹
function _tagUser()
{
 this.UserId = 0; //0-4
 this.UserName = ""; //5-
 this.Parse = function(VarTypeUser)
 {
  for (var i=0;i<VarTypeUser.length;i++)
   VarTypeUser[i] = String.fro ......

Javascript¼æÈÝIE&FFµÄ¸´ÖƵ½¼ôÌù°å

°ÑÒÔǰдµÄBLOGת¹ýÀ´°É£¬Õâ¸öÊǸö²»´íµÄJS¸´ÖƵ½¼ôÇа壬Áô×÷¼ÇºÅÒÔ±¸ºóÓá£
<mce:script type="text/javascript"><!--
copyToClip(cpStr){
if(clipboardData){
clipboardData.setData("Text", cpStr);}
else if (netscape){
netscape.security.PrivilegeManager.enablePrivilege( ......

Javascript¼¼Çɼ¸Ôò

JavaScript µÄ³É¹¦ÈÃÈ˽ò½òÀÖµÀ£¬Îª Web ÍøÒ³±àд JavaScript ´úÂëÒѾ­ÊÇËùÓÐ Web Éè¼ÆʦµÄ»ù±¾¹¦£¬ÕâÃÅÓÐȤµÄÓïÑÔÔ̲Ø×ÅÐí¶à²»ÎªÈËÊìÖªµÄ¶«Î÷£¬¼´Ê¹¶àÄêµÄ JavaScript ³ÌÐòÔ±£¬Ò²Î´ÄÜÍêÈ«³Ô͸¡£±¾ÎÄ´Ó7¸ö·½Ãæ½²Êö JavaScript ÖÐÄÇЩÄã²»ºÜÊìÖªµ«·Ç³£ÊµÓõļ¼ÇÉ¡£
¼òÂÔÓï¾ä
JavaScript ¿ÉÒÔʹÓüòÂÔÓï¾ä¿ìËÙ´´½¨¶ÔÏóºÍÊý× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ