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

JavascriptºÍAjaxÖÐÎÄÂÒÂëÍÂѪ°æ½â¾ö·½°¸

Òý×Ô£ºhttp://www.cnblogs.com/dongritengfei/archive/2009/12/21/1628489.html
 
½ñÌìŪÁËÒ»ÌìµÄAjaxÖÐÎÄÂÒÂëÎÊÌ⣬AjaxµÄÂÒÂëÎÊÌâ·ÖΪÁ½ÖÖ£º
1. JavaScriptÊä³öµÄÖÐÎÄÂÒÂ룬
±ÈÈ磺alert("ÖÐÎÄÂÒÂë²âÊÔ");
½â¾öµÄ°ì·¨±È½Ï¼òµ¥£¬¾ÍÊÇ°ÑjspÀïËùÓеÄcharsetºÍpageEncodingµÄÖµ¶¼ÉèÖóÉÏàͬµÄ£¬Ò»°ãÊÇutf-8.
 
2. ÕâµÚ¶þÖÖ¾ÍÊÇAjax´Ó·þÎñÆ÷¶Ë»ñµÃµÄÊý¾Ý³öÏÖÂÒÂëµÄÎÊÌâ¡££¨ÎÒËÑÁËn¸öСʱÊÔÁËnÖз½·¨²ÅÕÒµ½´ð°¸£©
ÏÖÔÚ½«ÎÒËѼ¯µÄ±È½ÏÓÐЧµÄ·½·¨¶¼Óë´ó¼Ò·ÖÏí£º£¨ÎÒʹÓõĿª·¢»·¾³ÊÇEclipse£¬ÏàÐÅÆäËûÓïÑԺͿª·¢»·¾³¶¼²î²»Ì«¶à¡££©
 ±ÈÈç
var message = xmlHttp.responseText;
 alert("message: "+message);
»ñµÃÕâ¸ömessageÊä³ö¾ÍÊÇÂÒÂë
 
½â¾ö°ì·¨£º
1. Ð޸ıàÂë¡£ÇмÇÒª½«´úÂ뱸·Ýһϣ¬¸ÄÁ˱àÂëÖ®ºóÖÐÎÄ»á±äΪÂÒÂë¡£
ÔÚjsÎļþÉÏÓÒ¼üµã»÷Properties£¬ÐÞ¸ÄText file encode ΪUTF-8£¨ÕâÀïÓ¦µ±ÓëjspÖеıàÂëÏàͬ£© 
 
ͬÑùµÄ½«JavaScript source fileºÍJSPµÄDefault encodingÉèÖÃΪUTF-8£¨ÕâÀïÓ¦µ±ÓëjspÖеıàÂëÏàͬ£¬ÕâÑùÒÔºóµÄÏîÄ¿¾Í¶¼ÊÇutf-8µÄ±àÂëÁË£¬ÍƼöʹÓÃÕâ¸ö£©
2. ×¢Òâresponse.setContentType("text/html;charset=utf-8");ºÍPrintWriter out = response.getWriter();µÄλÖùØϵ£¬ÇмÇÒª½«PrintWriter out = response.getWriter();·ÅÔÚresponse.setContentType("text/html;charset=utf-8");µÄºóÃ棬·ñÔòÉèÖõıàÂ뽫ÎÞЧ£¬ÕâÒ²ÊÇÎÒŪÁËn¾Ã¶¼¸ã²»¶¨µÄÔ­Òò£¡£¡£¡
 
²¹³ä£º½Å±¾¿ÉÒÔÕâÑùд£º
<script for="cu_model" event="onChange" language=VBScript charset="utf-8">
</script >


Ïà¹ØÎĵµ£º

±àÒëΪJavaScript£º²»¼æÈÝÐÔµÄÁíÀà½â¾ö·½°¸


JavaScriptºÜ³£Ó㬵«Ò²ÒòΪÆä²»¼æÈÝÐÔºÜÁîÈËÍ·ÌÛ¡£Ò»¸öÁíÀàµÄ½â
¾ö·½·¨¾ÍÊÇ£¬½«ÆäËûÓïÑÔ±àÒëΪJavaScript¡£±¾ÎÄÁоÙÁËGWT¡¢Smalltalk¡¢PythonµÈÓïÑÔ½«JavaScript×öΪ±àÒëÄ¿±êµÄÇé
¿ö¡£
¸ã¹ýWeb¿ª·¢µÄ¶¼»ò¶à»òÉÙÃþ¹ýJavaScript£¬¶ø¾¡¹ÜJavascriptÎÞ´¦²»ÔÚ£¬µ«»¹ÊǺÜÄÑÈÃÈËϲ»¶Ëü¡£ÔÚÀàËÆ
Google V8¡¢Apple/WebKitµÄNi ......

javascript µ¼³öÊý¾Ýµ½Excel£¨´¦ÀítableÖеÄÔªËØ£©

×î½ü×öµÄÏîÄ¿ÖÐÓиöÒªÇó£¬ÐèÒª½«Êý¾Ýµ¼³öµ½ExcelÖУ¬¹ØÓÚÕâ¸ö¾Í²»ÊÇʲôÎÊÌ⣬ÍøÉϵÄ×ÊÁϺܶࡣ¿Éµ±TableÖÐÓÐInput(text)Ö®ÀàµÄÔªËØÊÇÔõô°ì£¿
×ö·¨£º
       ÐÞ¸ÄInputµÄouterHTML;
¾ßÌåÀý×Ó£º
function resetInput()
    {
      &nbs ......

FABridge½Ì³Ì(Flex+Ajax)

½ñÌìÕÒһЩFlex×ÊÁÏ£¬Å¼È»·¢ÏֺܶàÈËÔÚÎÊÓйØFABridgeµÄÎÊÌ⣬¿´ÁËһϣ¬´óÖ¶¼ÊÇÔÚÎÊÔÚFlashBuilderÖÐÈçºÎͨ¹ýFABridgeÀ´ÊµÏÖF-AµÄ½»»¥¡£¼òµ¥ËµËµ°É¡£
Ò».ͨ¹ýjs·ÃÎÊFlex×é¼þ
    1.×¼±¸¹¤×÷¡£ÏȽ¨Á¢Flex¹¤³Ì :fademo£¬²¢·ÅÖÃÒ»¸öÎı¾¿ò:txtName¡£×öÍêºó´úÂëÓ¦¸ÃÀàËÆÓÚÕâ¸öÑù×Ó£º
<?xml version="1.0 ......

javascript dragÀà

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>dragÀà</title ......

IE FireFox safariÏÂjavascript²Ù×÷embed±êÇ©£¨×ª£©

Õâ¶Îʱ¼ä̫æÁË£¬¶¼Ã»Ê±¼äÎÒ¹¤×÷ÐĵÃдÏÂÀ´ÁË£¬½ñÌì³é¸öʱ¼ä°ÑÇ°Á½Ì칤×÷ÖÐÅöµ½µÄһЩºÜ¼¬ÊÖµÄÎÊÌâÒÔ¼°½â¾öµÄ·½·¨£º
ÎÊÌâÃèÊö£º
embed±êÇ©½ÓÊܵ½Ö±²¥Á÷ÒÔºóÔÚIEÏ¿ÉÒÔͨ¹ýplay()ºÍpause()·½·¨µÃµ½ºÜºÃµÄ²¥·Å/ÔÝÍ£µÄ¿ØÖÆ£¬µ«ÔÚFireFoxºÍsafari È¥ÎÞÄÜΪÁ¦£¬ÔÚFirefoxºÍsafariÏ¿ÉÒÔÕý³£µÄ²¥·Å£¨ÔÚsafariÐèҪװmedia²å¼þ£©£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ