JavascriptÖÐÎļþ·¾¶µÄÎÊÌâ - Web ¿ª·¢ / Ajax
Îʸö±È½Ï»ù´¡µÄÎÊÌ⣬ÔÚÒ»¸öhtmlÎļþÖÐÒýÈëÁËÒ»¸ö.jsµÄÎļþ£¬ÄÇô¶ÔÓÚÕâ¸ö .js µÄÎļþÀ´Ëµ£¬ËüËù¶ÔÓ¦µÄµ±Ç°Â·¾¶Ó¦¸ÃÊÇÄÄÒ»¸ö£¿ÊÇhtmlÎļþËùÔڵķ¾¶£¬»¹ÊÇ .js ÎļþµÄ·¾¶£¿£¨htmlÓëjs²»ÔÚͬһÎļþ¼ÐÖУ©
ÓÉÓÚjsÖÐÒýÓÃµÄÆäËû×ÊÔ´Îļþ×ÜÕÒ²»µ½£¬ËùÒÔÐéÐÄÇó½Ì
JSÎļþÖеÄ·¾¶£¬ÊÇHTMLµÄ¡£
×îºÃ±ðдÏà¶Ô·¾¶../../ÕâÑùµÄ¿´ÆðÀ´Ì«·Ñ¾¢¡£
¾Íд¾ø¶ÔµÄ/Îļþ¼Ð/Îļþ¼Ð/Îļþ
ÕâÑù¶àºÃ£¬´Ó×îÍâ²ã¿ªÊ¼ÍùÀïÃæÕÒ¡£
ÎÒÒ²ÍÆ¼öʹÓþø¶Ô·¾¶
CSS code:
£¨htmlÓëjs²»ÔÚͬһÎļþ¼ÐÖУ©
ÒòΪ²»ÔÚͬһ¸öÎļþ¼Ð£¬¿¼Âǵ½ÕâЩÎļþ¿ÉÄÜ»áÒ»ÆðÒÆ¶¯¡£
ËùÒÔ×îºÃʹÓÃÏà¶Ô·¾¶¡£
È磺<script type="text/javascript" src="demo/jslib/test.js"></script>
¾ÍÕâÑù¡£
¡£
Ïà¹ØÎÊ´ð£º
²úÆ·µÄÅäÖÃÒ³Ãæ¹²ÓÃÒ»¸öÓÃJavaScriptµÄdTreeʵÏÖµÄÊ÷Ðνṹ£¬ÏÔʾµÄʱºò£¬Ê÷Ðνṹ¿¿ÔÚÒ³ÃæµÄ×î×ó±ß£¬¸úÎÒµÄÅäÖÃÒ³ÃæÖмä¸ôÁËÒ»´ó¿é£¬ÏÖÔÚÏë°ÑÊ÷ÐÎĿ¼¾ÓÖУ¬½ô¿¿ÔÚÅäÖÃÄÚÈÝÅԱߣ¬ÈçºÎ¿ØÖÆÊ÷ÐÎĿ¼µÄλÖã¬ÒÔ¼°¿É²»¿ ......
×î½ü ʹÓà js, ¾³£²»ÄÜÉÏÍø, Ï£ÍûÄÄλ´ïÈË ÄÜÌṩһ¸ö
±È½ÏÍêÕûµÄ jsÀëÏßÎĵµ,ÐÂÒ»µã¶ù,ÍêÕûµã¶ùµÄ±È½ÏºÃ,±ÈÈçÉæ¼° dom ÕâЩ
ÇëÖ¸µãÒ»¶þ.
Íò·Ö¸Ðл°¡.
http://download.csdn.net/source/566130
......
ÎÒÔÚheadÖÐдÁËÏÂÃæµÃ´úÂë,Ïë½Ù³Öalertº¯Êý£¬¿ÉÊDz»ÖªµÀΪʲô£¬½«Õâ¸öhtml´ò¿ªÊ±£¬µ¯³öÁ½¸ö¿ò¶¼ÊÇÄÚÈݶ¼ÊÇab£¬ÎÒÒѾ½Ù³ÖÁËÕâ¸öº¯Êý£¬ÎªÊ²Ã´Ã»ÓÐÐ§ÄØ£¿
ÎÒÔÚÏÂÃæ¶¨Òå¸öbuttonÔÚonclickʼþÖÐÌí¼Ó´úÂëalert£¨¡°ab¡± ......
ÎÒÓÃJavaScriptдÁ˸öÓû§×¢²á½çÃæ£¬ÎÒÏë°ÑÀïÃæµÄÐÅÏ¢Ìá½»¹ýÈ¥
Èç¹ûÊÇ×Öĸ»òÊý×Ö¾ÍûÎÊÌ⵫ÊÇÈç¹ûÊÇÖÐÎľͳöÎÊÌâÁË£¡£¡
ÕâÊÇΪʲô°¡£¿£¿
<%@ page contentType="text/html; charset=gb2312" langua ......