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

ʵÓÃµÄ JavaScript ²âÊÔ¼°Ð§Ñ鹤¾ß

ÒÔÏÂÄú¿ÉÒÔ¿´µ½ÊÕ¼¯µÄ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£¨ÕýÔò±í´ïʽ¹¤¾ß£©ÊÇÒ»¿îÔÚÏß¹¤¾ß£¬ÓÃÀ´²âÊÔÄúµÄÕýÔò±í´ïʽ´úÂëÊÇ·ñÕýÈ·¡£µ±ÄúÏë¿ìËÙ²âÊÔ¸÷ÖÖÎı¾Àý×ÓµÄÕýÔò±í´ïʽʱ·Ç³£µÃÐÄÓ¦ÊÖ¡£
JSLitmus
JSLitmusÊÇ¿îÇáÁ¿¼¶µÄ¹¤¾ß£¬ÓÃÀ´²âÊÔJavaScriptÖ´ÐÐÐÔÄÜÇé¿ö£¬²ÉÓÃÖ±¹ÛµÄAPI¡£
JavaScript Regular Expression Tester
Õâ¿é±ãÀûµÄÓ¦ÓóÌÐòÊÇÔÚä¯ÀÀÆ÷ÖÐʹÓÃJavaScriptÀ´²âÊÔJavaScriptÕýÔò±í´ïʽµÄ¡£²Ù×÷½çÃæ¸úÆäËûÕýÔò±í´ïʽ²âÊÔ¹¤¾ßÎÞÒ죬²»Í¬µÄ ÊÇ£¬Ëü²âÊÔµÄÊÇJavaS


Ïà¹ØÎĵµ£º

javascriptÖÐÈÕÆÚº¯ÊýDateÏê½â

¶ÔÏó: ÈÕÆÚ
DateÊÇjavascriptÔ¤¶¨ÒåÖ÷Ìâ. ¸ÃÖ÷Ìâ°üÀ¨¿É»ñÈ¡»òÉèÖÃϵͳÈÕÆÚ¡¢Ê±¼ä¡¢Ô¡¢ÈÕ¡¢Ð¡Ê±¡¢·ÖÖÓ¡¢ÃëµÈµÈ¡£°üÀ¨º¯Êý·½·¨»ñÈ¡ UTC ¸ñʽµÄÈÕÆÚ¡£ UTC Êǹú¼Ê±ê׼ʱ¼ä£¬Ò²³Æ¸ñÁÖÄáÖαê׼ʱ¼ä£¨Greenwich Mean Time£©¡£
ÔÚʹÓÃÕâЩ·½·¨Ç°¿ÉÏÈÉùÃ÷Ò»¸öÖ÷Ìâ¡£
´´½¨ÐÂÈÕÆÚÖ÷Ìâ
ʾÀý´úÂ룺var exd = new Date();
µ÷ÓÃ"n ......

ÄÇЩÏà¼ûºÞÍíµÄ JavaScript ¼¼ÇÉ

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

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°æ Ö²Îï´óÕ½½©Ê¬


ÔÚÏßÊÔÍ棺http://asfoxes.w229.7ga.net/js
ÏÂÔصØÖ·£ºhttp://download.csdn.net/source/2235386
֮ǰ»¨ÁËÒ»¸ö½üÒ»¸öÀñ°ÝдµÄ
Ä¿Ç°»ù±¾Íê³ÉÁË£¬¿ÉÒÔÈ¥³¢ÊÔÏÂ
ä¯ÀÀÆ÷°æ±¾£º
IE8Õý³£ÔËÐÐ
op¡¢ff...ÉÐÓÐÒ»¸öСbug£¬²»ÄÜÍêÃÀÔËÐÐ
Ö÷ÒªÓÐÒÔϼ¸¸öÎÊÌâÔÝʱû´¦Àí£º
1.¸ü¼Ó¶àµÄÖ²ÎïºÍ½©Ê¬ÖÖÀàÌí¼Ó
2.Ö²ÎïºÍ½©Ê¬µÄÌùͼ»¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ