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

Squery¿ò¼ÜÖ®AJAX¿Ø¼þ ¼ÌÐø¿ª·¢ÖÐ

ÒÔºó˵Ã÷¾ÍдÔÚÕâÀïÁË,¸Ã¿Ø¼þÖ»µ±ÊÇÁ·ÊÖ ÎÒ°Ñ˵Ã÷Ò»Æð´ò°üÁË ²»¹ý»¹ÊÇÔÚÕâÀï¶øÔÚÌù³öÀ´ ÎÒÓпյÄʱºò¾Í»áÀ©Õ¹ÆäËû¹¦ÄÜÁË
¸ßÊ־ͿÉÒÔÆ®¹ýÁË...  ÿ´Î¸üÐÂÎÒ¶¼»á°ÑÔ­À´µÄ¿Ø¼þÒ»Æð´ò°ü Îļþ¿ÉÄÜÔ½À´Ô½´ó,ºÇºÇ »¶Ó­½»Á÷
Ax¿Ø¼þÓÃÓÚajaxÇëÇó
Ö§³Öä¯ÀÀÆ÷ »ðºü IE µÈ...
¿Ø¼þ²ÎÊý
 _Async ÊÇ·ñͬ²½ trueΪÒì²½ falseΪͬ²½
 _datas ´«Ë͵ÄÊý¾Ý Èç{name:Yige,age:20}
 _requestMethod ÇëÇó·½Ê½ Ö§³Ö post getÁ½ÖÖ
ÒÔÉϲÎÊýÇëͨ¹ý get_Async»ñÈ¡ »òset_AsyncÉèÖÃÆäÊýÖµ
×î¼ò·½·¨
µÚÒ»²½:Ê×ÏÈÒ³ÃæÒýÈë¸ÃЧ¹û¿â
<script type="javascript" src="¸ÃЧ¹û¿âËùÔÚµØÖ·"></script>
µÚ¶þ²½
<script type="javascript">
var s=Squery();
s.Ax.SendContent("ÇëÇóµØÖ·","ÇëÇó³É¹¦ºóÏÔʾµÄÔªËØID");
</script>
ÒÔÉÏΪ×î¼òÇëÇó·½Ê½
ÆäËûÇëÇó·½Ê½
SendTion(Êý¾Ý(Josn¸ñʽ),ÇëÇóµØÖ·,³É¹¦ºóÏÔʾÄÚÈݵÄÔªËØID);
ÈçSendTion({yige:"ϬÀû¸ç",age:"20"},"yige.asp","div1"});
SendCallback(Êý¾Ý(Josn¸ñʽ),ÇëÇóµØÖ·,³É¹¦ºóÏÔʾÄÚÈݵÄÔªËØID£¬»Øµ÷º¯Êý(Ö»ÐèÌṩÃû³Æ¼´¿É));
ÈçSendCallback({yige:"ϬÀû¸ç",age:"20"},"yige.asp","div1","sayResult"});
×¢Ò⠸ÿؼþĬÈÏÇëÇóΪGET ÈôÒªÐÞ¸ÄÇëÇó·½·¨,ÔÚÄúʹÓÿؼþ·½·¨Ç°ÇëÏȵ÷ÓÃset_requestMethod()·½·¨,ÔÚÀ¨ºÅÄÚдÈëGET»òPOST,
µ±È»ÁË Äú»¹¿ÉÒÔÀ©Õ¹¸Ã¿Ø¼þ ×éºÏ³ÉÄãÐèÒªµÄ·½Ê½ ͨ¹ýÒÔÉϿؼþ·½·¨¼°¿Ø¼þ³ÉÔ± Äú¿ÉÒÔ×Ô¶¨ÒåÒ»ÖÖÇëÇó·½Ê½
Èç:
var s=Squery();
                    //ÇëÇó·½·¨  Êý¾Ý   µØÖ·  ³ÊÏÖÔªËØID  »Øµ÷
function ConstomizeRequest(_rm,_datas, _url, _eleid, _callback){
s.Ax.set_requestMethod("POST");
s.Ax.set_datas({yige:"Seven",age:"24"});
s.Ax.SendContent(_url, _eleid, _callback);
}
ÓÐʲôÎÊÌâÇëÁôÑÔ  ÏÂÔصØÖ·:µã»÷ÏÂÔØ


Ïà¹ØÎĵµ£º

Á˽âʹÓà ASP.NET AJAX ½øÐоֲ¿Ò³Ãæ¸üÐÂ

Á˽âʹÓà ASP.NET AJAX ½øÐоֲ¿Ò³Ãæ¸üÐÂ
¼ò½é
MicrosoftµÄ ASP.NET ¼¼ÊõÌṩÁËÒ»¸öÃæÏò¶ÔÏó¡¢Ê¼þÇý¶¯µÄ±à³ÌÄ£ÐÍ£¬²¢½«ÆäÓëÒѱàÒë´úÂëµÄÓÅÊƽáºÏÆðÀ´¡£µ«Æä·þÎñÆ÷¶ËµÄ´¦ÀíÄ£ÐÍÈÔ´æÔÚ¼¼Êõ±¾ÉíËù¹ÌÓеļ¸µã²»×㣺
½øÐÐÒ³Ãæ¸üÐÂÐèÒªÍù·µ·þÎñÆ÷£¬Òò´ËÐèÒªÒ³ÃæˢУ»
À´»ØÍù·µ²»»á±£Áô Javascript »òÆäËû¿Í»§¶Ë¼¼Êõ£¨Èç Ad ......

AJAXµÄºËÐÄ

XMLHttpRequestÊÇAjax¼¼ÊõÌåϵÖÐ×îΪºËÐĵļ¼Êõ¡£È±ÉÙÁËËü£¬AjaxµÄÆäÓ༼Êõ¾ÍÎÞ·¨³ÉΪһ¸öÓлúµÄÕûÌ壬½«»áÍÁ±ÀÍ߽⡣
¡¡¡¡1999ÄêÉÏ°ëÄ꣬MSÔÚIE 5.0°æÖÐÊ×´ÎÖ§³ÖÕâÖÖ¼¼Êõ£¬ËûÃÇÊÇͨ¹ýÒ»¸öÃûΪXMLHTTPµÄActiveX¶ÔÏóÀ´Ö§³ÖÕâÖÖ¼¼ÊõµÄ¡£XMLHTTP¶ÔÏóʹµÃÒ³ÃæÖеĽű¾¾ßÓÐÁËÔÚ²»Ë¢ÐÂÒ³ÃæµÄÇé¿öÏÂÖ±½ÓÓë·þÎñÆ÷ͨÐŵÄÄÜÁ¦¡£ÔÚ´ËÖ ......

AjaxÌá½»Êý¾Ý¸üзþÎñÆ÷neir

  1£¬±¾Àý×ÓʵÏÖÒ»¸öAjax¸ü¸ÄÊý¾ÝµÄÀý×Ó
Èçͼ£º
1£¬Ð½¨xmlÎļþ£»ÆäÄÚÈÝÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<userinfo>
<user>
<id>I</id>
<name>wtq</name>
<password>123456</password>
<phone>0595-8553 ......

asp.netÀûÓÃjqueryµÄajax·½·¨À´ÑéÖ¤µÇ½µÄ´úÂë

Ðí¶à³ÌÐòÔ±ÔÚ×öÒµÎñ¿ª·¢Ê±ÍùÍù»áÔÚ·þÎñÆ÷¶Ë×öÓû§ÐÅÏ¢µÄÑéÖ¤£¬ÓÐûÓп¼ÂǹýÓÃjqueryµÄajax·½·¨À´ÑéÖ¤µÇ½ÄØ£¿ÇÒЧ¹û±ÈÔÚ·þÎñÆ÷¶Ëд´úÂëÀ´ÑéÖ¤ºÃµÄ¶à£¬Ò³ÃæÎÞˢм´¿ÉʵÏÖʵÏֵǽÑéÖ¤£¬´úÂëÒ²¼òµ¥¡£
ÏÖÔÚÏÂÃæÌù³öÀ´µÄÊǺܼòµ¥µÄÓÃjqueryµÄajax·½·¨À´ÑéÖ¤µÇ½µÄ´úÂ룬ÊʺϸսӴ¥jqueryµÄÅóÓÑѧϰ¡£
ǰ̨ҳÃæ´úÂ룺
<he ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ