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

jQuery AjaxÌá½»Ò³ÃæÊý¾Ý

jQuery µ×²ã AJAX ʵÏÖ¡£¼òµ¥Ò×Óõĸ߲ãʵÏÖ¼û $.get, $.post µÈ¡£$.ajax() ·µ»ØÆä´´½¨µÄ XMLHttpRequest ¶ÔÏó¡£´ó¶àÊýÇé¿öÏÂÄãÎÞÐèÖ±½Ó²Ù×÷¸Ã¶ÔÏ󣬵«ÌØÊâÇé¿öÏ¿ÉÓÃÓÚÊÖ¶¯ÖÕÖ¹ÇëÇó¡£
×¢Ò⣺ Èç¹ûÄãÖ¸¶¨ÁË dataType Ñ¡ÏÇëÈ·±£·þÎñÆ÷·µ»ØÕýÈ·µÄ MIME ÐÅÏ¢£¬(Èç xml ·µ»Ø "text/xml")¡£´íÎóµÄ MIME ÀàÐÍ¿ÉÄܵ¼Ö²»¿ÉÔ¤ÖªµÄ´íÎó¡£
Ìá½»Ò³ÃæÊý¾Ý£º
//½«Ò³ÃæµÄenterNameµÄÖµÌá½»¸øvideoAddAfter£¬³É¹¦ºó·µ»ØvideoManage
var enterName = document.getElementById("enterName");
$.ajax({
   type:'POST',
   url:'videoAddAfter.do',
   data:{enterName:enterName.value},
   success:function(msg){
    if(msg=="success"){
     alert("Ìí¼Ó³É¹¦");
     window.location.href='videoManage.do';
    }else{
     alert(msg);
    }
   }
  });
ÆäÖÐmsg==“success”ÖГµÄsuccess”ÊÇ´ÓvideoAddAfterµÄout.print("success");


Ïà¹ØÎĵµ£º

Ajax ºÍ REST£¬µÚ 1 ²¿·Ö

2006 Äê 11 ÔÂ 09 ÈÕ
·þÎñÆ÷¶Ë Web Ó¦ÓóÌÐòÒò²ÉÓø»Ó¦ÓóÌÐòÄ£Ðͺͽ»¸¶¸öÐÔ»¯ÄÚÈݶø¾ß±¸ÁËÈÚÈëʽ£¨immersive£© µÄÌØµã£¬ÕâÖÖÌØµãԽͻ³ö£¬Ó¦ÓóÌÐò¼Ü¹¹¶Ô Web ¼Ü¹¹·ç¸ñ REST£¨Representational State Transfer£©µÄÎ¥±³¾ÍÔ½¶à¡£ÕâÖÖÎ¥±³»á½µµÍÓ¦ÓóÌÐòµÄ¿ÉÉìËõÐÔ£¬Ôö¼Óϵͳ¸´ÔÓÐÔ¡£Í¨¹ýÓë REST Ï໥Эµ÷£¬Ajax ¼Ü¹¹½«Ê¹ÈÚÈë ......

Ajax»ù´¡½Ì³Ì

»ìãç³õ¿ª£¬Ò»Çж¼ÄÇô¼òµ¥¡£ÎªÁËÁ¬½ÓÃÀ¹úµÄÉÙÊý¼¸¸ö¶¥¼âÑо¿»ú¹¹£¬ÈËÃÇÉè¼ÆÁË×îÔçµÄ“Internet”£¬ÒԱ㹲ͬ¿ªÕ¹¿ÆÑ§Ñо¿¡£²»ÂÛÊÇͼÊé¹ÝÔ±¡¢ºËÎïÀíѧ¼Ò£¬»¹ÊǼÆËã»ú¿ÆÑ§¼Ò£¬¶¼±ØÐëѧϰһ¸öÏ൱¸´ÔÓµÄϵͳ¡£1962Ä꣬ÂéÊ¡Àí¹¤Ñ§Ôº£¨MIT£©µÄJ.C.R. Licklider×îÔçÌá³öËûµÄ“Galactic Network”£¨³¬´óÍøÂç£©Ë ......

AjaxÓ¦ÓõÄÎå¸ö²½Öè

//AjaxÓ¦ÓõÄÎå¸ö²½Öè
//1.´´½¨XMLHttpRequest¶ÔÏó
var xmlHttp=createXMLHttpRequest();
function createXMLHttpRequest()

 var xmlHttp;
 if(Window.XMLHttpRequest)
 { 
  //IE6ÒÔÉϰ汾ºÍÆäËûä¯ÀÀÆ÷ÄÚÖÃXMLHttpRequest¶ÔÏó
  xmlHttp=new XMLHttpRequest(); ......

ajax repeater·ÖÒ³

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<mce:style type="text/css"><!--
.n{TEXT-DECORATION:none;cursor:pointer} a{color:black} a:hover{color:blue}
.m{TEXT-DECORATION:none;c ......

10¸öÓÅÐãµÄAjaxºÍJavascript¹úÍâ×ÊÔ´ÍøÕ¾

10¸öÓÅÐãµÄAjaxºÍJavascript¹úÍâ×ÊÔ´ÍøÕ¾
×ªÔØµØÖ·£ºhttp://www.zzsky.cn/build/content/1246.htm
        1¡¢Ajax Rain: http://www.ajaxrain.com
¡¡¡¡AjaxRainÓкܶàÍêÃÀÕûºÏAjax¡¢CSS¡¢DHTML»òJavascriptµÄʵÀý£¬ÓÐһЩDemoµÄÈ·ÖµµÃÄãÈ¥¿´Ò»¿´£¬¼´Ê¹Äã²»ÊÇÍøÒ³Éè¼Æ£¨¿ª·¢£©Ê¦¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ