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µ÷ÊÔÊÇÒ»ÑùµÄ£¬ÕâÀï²»Ôٶི¡£
Ïà¹ØÎĵµ£º
µÚÁùÕ Responsive Interfaces ÏìÓ¦½Ó¿Ú
There's nothing more frustrating than clicking something on a web page and having nothing happen. This problem goes back to the origin of transactional web applications and resulted in the now-ubiquitous "please click only once" m ......
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:
×ܵÄÀ´ËµÔ½ÇáÁ¿¼¶µÄ¸ñʽԽºÃ£¬× ......
µÚ°ËÕ 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" ......
Summary ×ܽá
When web pages or applications begin to feel slow, analyzing assets as they come over the wire and profiling scripts while they are running allows you to focus your optimization efforts where they are needed most.
µ±ÍøÒ³»òÓ¦ÓóÌÐò±äÂýʱ£¬·ÖÎ ......
The jLayout JavaScript library provides layout algorithms for laying out components. A component is an abstraction; it can be implemented in many ways, for example as items in a HTML5 Canvas drawing or as HTML elements. The jLayout library allows you to focus on drawing the individual components i ......