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

Javascript ʹÓÃIDE¹¤¾ß½øÐе÷ÊÔ

1. Javascript Debug Toolkit½éÉÜ
JSDT(Javascript Debug Toolkit)ÊÇÒ»¸öÓÃÓÚjavascriptµ÷ÊÔµÄeclipse
²å¼þ£¬ÓÃÓÚµ÷ÊÔjavascript¡£JSDT¿ÉÒÔ¿çä¯ÀÀÆ÷µ÷ÊÔ£¬Ö§³ÖÔÚIE,Firefox,Safari,ChromeµÈÖ÷Á÷ä¯ÀÀÆ÷Öе÷ÊÔ
javascript¡£JSDTÖ§³ÖÉèÖöϵ㣬µ¥²½µ÷ÊԵȵ÷ÊÔ¹¤¾ßµÄ»ù±¾ÌØÐÔ¡£
2. ÈçºÎ°²×°
JSDTÊÇ»ùÓÚeclipse3.2+,jdk1.5+»ù´¡¿ª·¢µÄ£¬Òò´Ë°²×°JSDTÇ°Ó¦µ±ÏÈ°²×°jdk1.5+ºÍeclipse3.2+¡£
JSDTÏÂÔصØÖ·£ºhttp://code.google.com/p/jsdt/downloads/list
,ÆäÖÐjsdt-1.0.0.zipÊÇJSDTµÄ°²×°°ü£¬ÏÂÔØ°ÑÆäÖеÄÈý¸öjar°ü½âѹµ½eclipseµÄpluginsĿ¼Ï£¬ÖØÆôeclipse¼´¿É¡£
jsdt-simple.swfÊÇÒ»¶ÎʹÓÃjsdtÔÚchromeä¯ÀÀÆ÷µ÷ÊÔjavascriptµÄ¼òµ¥Àý×ӵļÏó¡£
jsdt-ext-desktop.swfÊÇÒ»¶ÎʹÓÃjsdtÔÚsafariä¯ÀÀÆ÷µ÷ÊÔjavascriptµÄ¼Ïó¡£
3.ÈçºÎʹÓÃ
1.       ÔÚeclipseÖдò¿ªµ÷ÊÔ¶Ô»°¿ò£¬ÈçÏÂͼËùʾ£º
2.       н¨Ò»¸öJavascript Debug£¬ÈçÏÂͼËùʾ
ÔÚurlÖÐÊäÈëÒªµ÷ÊÔµÄurl--±¾µØÎļþÃû»ò·þÎñÆ÷ÉϵÄÎļþÃû(Ö»Ö§³ÖhttpÀàÐ͵Äurl)¡£ÔÚbrowserÊäÈë¿òÖÐÑ¡Ôñä¯ÀÀÆ÷(ie,firefox,safari»òchromeµÈ)
µã»÷µ÷ÊÔºó»á´ò¿ªä¯ÀÀÆ÷£¬£¬eclipseÒ²»áתµ½µ÷ÊÔÊÓͼ£¬²¢´ò¿ªËùÓÐÓõ½µÄjavascriptÎļþ¡£
Èç¹ûûÓдò¿ªjavascriptÎļþ£¬Çë²é¿´µ÷ÊÔ͸ÊÓͼÖÐÊÇ·ñ´ò¿ªÁËDebug ScriptsÊÓͼ
Èç¹ûûÓдò¿ª¸ÃÊÓͼ£¬Çëµã»÷£ºwindow-show view-other->Debug Scripts´ò¿ªDebug
ScriptsÊÓͼ£¬ÔÙÑ¡Ôñµ±Ç°µ÷ÊÔ¶ÑÕ»£¬¼´¿É¿´µ½Debug ScriptsÊÓͼ£¬Ë«»÷Debug
ScriptsÖеÄÎļþ£¬¼´¿É´ò¿ªscriptÎļþ¡£
3.       ÉèÖöϵã
ÔÚjsÎļþÖпÉÒÔÉèÖöϵã
ä¯ÀÀÆ÷ÖÐÔËÐе½¸ÃÐÐjsʱ»á×Ô¶¯Öжϣ¬eclipseÒ²»áÍ£Ö¹Ôڸöϵ㣬µÈ´ýÓû§²Ù×÷¡£
4.       ÆäËû²Ù×÷
ÒòΪÆäËû²Ù×÷ºÍeclipseµ÷ÊÔÊÇÒ»ÑùµÄ£¬ÕâÀï²»Ôٶི¡£


Ïà¹ØÎĵµ£º

[·­Òë]High Performance JavaScript(021)

Splitting Up Tasks  ·Ö½âÈÎÎñ
    What we typically think of as one task can often be broken down into a series of subtasks. If a single function is taking too long to execute, check to see whether it can be broken down into a series of smaller functions that complete in smaller ......

[·­Òë]High Performance JavaScript(024)

Data Format Conclusions  Êý¾Ý¸ñʽ×ܽá
    Favor lightweight formats in general; the best are JSON and a character-delimited custom format. If the data set is large and parse time becomes an issue, use one of these two techniques:
    ×ܵÄÀ´ËµÔ½ÇáÁ¿¼¶µÄ¸ñʽԽºÃ£¬× ......

[·­Òë]High Performance JavaScript(025)

µÚ°ËÕ  Programming Practices  ±à³Ìʵ¼ù
    Every programming language has pain points and inefficient patterns that develop over time. The appearance of these traits occurs as people migrate to the language and start pushing its boundaries. Since 2005, when the term "Ajax" ......

[·­Òë]High Performance JavaScript(030)

µÚʮՠ Tools  ¹¤¾ß
    Having the right software is essential for identifying bottlenecks in both the loading and running of scripts. A number of browser vendors and large-scale websites have shared techniques and tools to help make the Web faster and more efficient. This ......

ÓÃJavaScriptдµÄСʱºòÍæµÄƹÅÒÇòСÓÎÏ·

ÓÉÓÚ»ðºüä¯ÀÀÆ÷²»Ö§³Ö“removeNode”º¯Êý£¬ËùÒÔһϴúÂëÖ»Ö§³ÖIE.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
< ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ