Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

asp.net¶¯Ì¬×¢²ájavascript×ܽá

Ò».ʹÓÃRegisterStartUpScript×¢²áÖ»Ö´ÐÐÒ»´ÎµÄjavascript
µÚ1²½(´´½¨²¢×¢²á²¢Ê¹ÓÃjavascript)£ºPage.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
//´´½¨JavaScript
string info = "<mce:script type="text/javascript"><!--alert('ÄãºÃ£¬ÎÒÊÇXXX£¡')// --></mce:scrip ......

javascript ѧϰ±Ê¼Ç£¨6£©

1. window ¶ÔÏóÊÇÕû¸ö BOM µÄºËÐÄ,ËùÓжÔÏóºÍ¼¯ºÏ¶¼ÒÔijÖÖ·½Ê½»Ø½Óµ½ window ¶ÔÏó.
          window ¶ÔÏó±íʾÕû¸öä¯ÀÀÆ÷´°¿Ú,µ«²»±íʾÆäÖаüº¬µÄÄÚÈÝ.
2. ¿ª·¢Õß¿ÉÒÔʹÓà window ¶ÔÏóÒƶ¯ºÍµ÷Õûä¯ÀÀÆ÷´°¿ÚµÄ±íÏÖÐÎʽ.
    window.moveBy(dx,dy); //Ïà¶Ôµ±Ç°Î»ÖÃ,ˮƽÒƶ ......

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


ÔÚÏßÊÔÍ棺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ºÅ