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

AJAX.MVC¿ò¼ÜÉè¼Æ³ÂÊö 1£©AJAX½»»¥Éè¼Æ

ǰºó¶ËµÄ½»»¥ÊÇÕû¸ö¿ò¼ÜµÄÖÐÐÄ£¬ÎÒÏ£Íû´ÓÁ÷µÄ½Ç¶ÈÀ´Éè¼ÆAJAXµÄ½»»¥
AJAXµÄÉè¼Æ½«ºá¹áǰºó¶Ë
ǰ¶ËÊÇÖ÷¶¯
ºó¶ËÊDZ»¶¯
ÕûÌ忼Âǵϰ ǰºó¶ËʹÓÃÒ»¸öͳһµÄ½Ó¿Ú½øÐÐAJAX½»»¥
ºó¶Ë ÓÃÒ»¸öΨһµÄURLÀ´´¦Àí AJAXÇëÇó
½Ó¿ÚÃû³Æ     ´¦Àí½Ó¿Ú£º[http://ÓòÃû/mvc.ajax]  ·â×°ËùÓеÄAJAXÇëÇóµÄÔ¤´¦Àí
                 µ÷ÊÔ½Ó¿Ú£º[http://ÓòÃû/debug.ajax]  ÔÊÐíǰ¶Ë±à³Ìʱ Ó³Éäºó¶ËµÄMODLE¿é Éú³Éǰ¶ËµÄMODLESOURCE{¸Ã½Ó¿Ú²»Ó¦¸ÃÔÚÒµÎñ´¦ÀíÖпɼû}
ºó¶ËMVC.AJAX½Ó¿Ú ½ÓÊÜ2¸ö²ÎÊý m,p  m´ú±íÀàÐÍ  pÊDzÎÊýµÄ´®{²»¿¼ÂǺó¶ËµÄ¾ßÌå±à³ÌÓïÑÔ}
ǰ¶ËµÄAJAX´¦Àí½«È«²¿Î§ÈÆ AJAX½Ó¿Ú
ǰ¶ËÃüÃû·½Ê½
info.kk3k.AJAX   {¸ù¾ÝJAVA°üµÄÃüÃû¹æ·¶ µ¹×ªÓòÃû+ÀàÃû}
AJAX±íʾÕû¸öAJAX´¦ÀíµÄ¿Õ¼äºÍ·½·¨µ÷ÓÃ
AJAX(post|get,url,data,ancy,callbcak,errorcb)    //×îԭʼµÄAJAXµ÷Ó÷½·¨
AJAX.Config={....}                                              //AJAXÈ«¾ÖÅäÖÃÎļþ
AJAX.Factory


Ïà¹ØÎĵµ£º

´ÓÁ㿪ʼѧϰjQuery (Áù) AJAX¿ì²Í

Ò».ÕªÒª
±¾ÏµÁÐÎÄÕ½«´øÄú½øÈëjQueryµÄ¾«²ÊÊÀ½ç, ÆäÖÐÓкܶà×÷Õß¾ßÌåµÄʹÓþ­ÑéºÍ½â¾ö·½°¸, 
¼´Ê¹Äã»áʹÓÃjQueryÒ²ÄÜÔÚÔĶÁÖз¢ÏÖЩÐíÃØ¼®.
±¾ÆªÎÄÕ½²½âÈçºÎʹÓÃjQuery·½±ã¿ì½ÝµÄʵÏÖAjax¹¦ÄÜ.ͳһËùÓпª·¢ÈËÔ±
ʹÓÃAjaxµÄ·½Ê½.
¶þ.ǰÑÔ
AjaxÈÃÓû§Ò³Ãæ·á¸»ÆðÀ´, ÔöÇ¿ÁËÓû§ÌåÑé.
ʹÓÃAjaxÊÇËùÓÐWeb¿ª·¢µÄ±Ø ......

AJAXʹÓÃÖеÄ×¢ÒâÊÂÏî

1¡¢µ±¸Ä±ä·þÎñÆ÷ÉϵÄ״̬ʱӦµ±Ê¹ÓÃPOST·½·¨¡£²»Í¬ÓÚGET£¬ÐèÒªÉèÖÃXML- HttpRequest¶ÔÏóµÄContent-TypeÊײ¿£¬ÈçÏÂËùʾ£º
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ÓëGET²»Í¬£¬POST²»»áÏÞÖÆ·¢Ë͸ø·þÎñÆ÷µÄ¾»ºÉµÄ´óС£¬¶øÇÒPOSTÇëÇó²»Äܱ£Ö¤ÊÇÃݵȵġ£
Äã×öµÄ´ó¶àÊýÇëÇó¿ÉÄܶ¼ÊÇG ......

Ajaxѧϰ±Ê¼Ç£¨Ò»£©

    ¶ÔÓëÈÎÒâÒ»ÃÅÓïÑÔµÄѧϰ£¬ÎÒÃÇ´ó¶¼ÊÇ´Ó»ù´¡¿ªÊ¼£¬¶ø¶ÔÓÚAjaxµÄѧϰÎÒÃÇ´ó¿É²»±Ø£¬ÒòΪËü±¾Éí¾Í²»ÊÇÒ»ÃÅеÄÓïÑÔ£¬Ajax=Asynchronous javascript and xml¡£·ôdzµÄ˵£¬Ëü¾ÍÊÇ»ù±¾ÓïÑÔ»ìºÏÓ¦ÓõĽá¹û£¬ÕýÓÉÓÚÕâÖÖ»ìºÏ²»ÊÇËæÐÄËùÓû£¬ÈÎÒâ¹´¶ÒµÄ£¬²Å  ÓÐÁ˳Éϵͳ£¬³É¹æ·¶µÄAjax¡£
Ϊ´Ë£¬ÎÒÃÇÒ»¿ªÊ¼¾Í´Ó ......

ajax GET·½Ê½Ìá½»£¬ÖÐÎIJÎÊýÂÒÂëµÄÎÊÌâ


ÔÚ¹¹ÔìurlÊÇÓÃjavascript×Ô´øµÄencodeURIComponent·½·¨½«²ÎÊý½øÐбàÂ룬ÏÂÃæÊÇÎҵĴúÂë
      var url = "handel.jsp?name="+encodeURIComponent(document.form1.name.value);
      httpRequest = createHttpRequest();
      httpReque ......

¶þ¡¢Ð¡ÊÔÉíÊÖ——µÚÒ»¸öAjax³ÌÐò

Ò»¡¢          н¨Ò»¸öAjax_StartµÄÍøÕ¾
 
¶þ¡¢          ÔÚÍøÕ¾ÖÐÌí¼ÓÒ»¸öweb·þÎñ£¨ws_start.asmx£©
ÔÚvs2008ÖУ¬Ìí¼ÓÒ»¸öweb·þÎñÉú³ÉÁËÁ½¸öÎļþ£¬Ò»¸öÊÇasmxÎļþ£¬Ò»¸öÊÇÔÚApp_codeÀïµÄcsÎļþ£»ÎÒ¾õµÃÕâÑù²¢²»ºÃ£¬Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ