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

eclipseÖÐjavascriptÏÔʾΪÂÒÂëµÄ½â¾ö°ì·¨¡£


eclipseÖÐjavascriptÏÔʾΪÂÒÂëµÄ½â¾ö°ì·¨¡£
Òà¿ÉÒÀ´ÎÑ¡Ôñ²Ëµ¥"window">>"preferences">>"general">>"content types"
ÔÚÓұߵĴ°¿ÚÖдò¿ªÁбí,Ñ¡ÖÐ"JavaScript",ÔÚÏÂÃæµÄ"default encoding"ÓұߵÄÊäÈë¿òÖÐÊäÈëjavaScript±àÂ룬Ҫ¿´ÄúµÄÍøÒ³ÓõıàÂ룬Èç¹ûÊÇ“GBK”¾ÍÑ¡"GBK",ÊÇ"GB2312"¾ÍÑ¡“GB2312”£¬UTF-8¾ÍÊÇUTF-8£¬ÔÙµã"update"°´Å¥¡£
http://www.blogjava.net/menglikun/archive/2008/01/25/68079.html


Ïà¹ØÎĵµ£º

asp.net×¢²áJavascriptµÄ·½·¨

1¡¢IsStartupScriptRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁËÆôÓýű¾¡£
2¡¢IsClientScriptBlockRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾¿é¡£
3¡¢IsClientScriptIncludeRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾°üº¬¡£
µÚÒ»¸öÀý×Ó£º
string info = "<script>alert('ÄãºÃÂð£¿');</script>";
//ÅжÏʼþÊÇ·ñ±»×¢²á£¬Ð´ÈëÇ ......

ͨ¹ýjavascript»ñµÃurl²ÎÊý

Ò³ÃæÌá½»Êý¾ÝÒ»°ãÓÐÁ½ÖÖ·½·¨£ºget,post¡£post¾ÍÊÇËùνµÄformÌá½»£¬Ê¹ÓÃÊÓͼ£»getÊÇͨ¹ýurlÌá½»¡£
Get·½·¨Ò»°ãÓúǫ́´úÂ루Èçasp,asp.net£©»ñµÃ²ÎÊý£¬´úÂëºÜ¼òµ¥£ºRequest.QueryString["id"];¼´¿É»ñÈ¡¡£ 
ÓÐЩʱºòÐèÒªÖ±½ÓÔÚǰ̨»ñÈ¡url²ÎÊý£¬ÒªÓõ½javascript£¬jsûÓÐÖ±½Ó»ñÈ¡url²ÎÊýµÄ·½·¨£¬ÄÇô£¬ÎÒÃÇÈçºÎͨ¹ýjs ......

JavaScript£¬µÈ±ÈÀýËõ·ÅͼƬµÄº¯Êý

    ÔÚWebÉÏÏÔʾͼƬ£¬Í¨³£¶¼»áÓÐͼƬÏÔʾ±ÈÀýÎÊÌ⣬Èç¹û²»¸ø<img />ÏÞÖÆwidthºÍheight£¬ÄÇôÈç¹ûͼƬ´óÁ˾ͻὫÕû¸öÒ³Ãæ¼·ÂÒ£¬Í¼Æ¬Ð¡ÁËÓÖ»áʹͼƬʧÕæ¡£
    ÎÒµÄÐèÇóÈçÏ£º
        1¡¢Ô¤Ïȶ¨ÒåºÃͼƬÏÔʾµÄ±ê×¼¿í¶ÈºÍ¸ß¶È¡£
  &nb ......

javascriptµÄº¯Êýµ÷Óü̳ÐʵÏÖ

¿´µ½Ò»ÆªÈëÃŵÄJS¼Ì³ÐÎÄÕÂ,תÔØÏÂ
Ô­µØÖ·:http://sdcyst.javaeye.com/blog/288813
Àà±äÁ¿/Àà·½·¨/ʵÀý±äÁ¿/ʵÀý·½·¨
ÏȲ¹³äÒ»ÏÂÒÔǰд¹ýµÄ·½·¨:
ÔÚjavascriptÖÐ,ËùÓеķ½·¨¶¼ÓÐÒ»¸öcall·½·¨ºÍapply·½·¨.ÕâÁ½¸ö·½·¨¿ÉÒÔÄ£Äâ¶ÔÏóµ÷Ó÷½·¨.ËüµÄµÚÒ»¸ö²ÎÊýÊǶÔÏó,ºóÃæµÄ
²ÎÊý±íʾ¶ÔÏóµ÷ÓÃÕâ¸ö·½·¨Ê±µÄ²ÎÊý(ECMAScript spec ......

javascript´ò¿ªÑ¡Ôñ¶Ô»°¿ò/±£´æ¶Ô»°¿ò

¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓƵ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«Æä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ