Õâ¸öÒ»¸ö¼òµ¥µÄphpÓëajax°¸Àý ½ö¹©ÐÂÊÖѧϰ¸½ÉÏЧ¹ûͼ<script type= "text javascript ">$(function(){ $( " send ") click(function(){ var cont = $( "input ") serialize(); $ ajax({ url:& 39;aseoe ph
jQuery∵
ajaxËù°üº¬µÄ¼¼Êõ´ó¼Ò¶¼ÖªµÀajax²¢·ÇÒ»ÖÖеļ¼Êõ£¬¶øÊǼ¸ÖÖÔÓм¼ÊõµÄ½áºÏÌå¡£ËüÓÉÏÂÁм¼Êõ×éºÏ¶ø³É¡£1 ʹÓÃCSSºÍXHTMLÀ´±íʾ¡£2 ʹÓÃDOMÄ£ÐÍÀ´½»»¥ºÍ¶¯Ì¬ÏÔʾ¡£3 ʹÓÃXMLHttpRequestÀ´ºÍ·þÎñÆ÷½øÐÐÒ첽ͨÐÅ¡£
JSONÊý¾Ý²Ù×÷server2∵php<?php∵∵1$member[&∵39;username&∵39;]="aseoe";$member[&∵39;password&∵39;]="aseoe";$do=$_REQUEST[&∵39;do&∵39;];∵∵2$members[&∵39;1&∵39;][&∵39;username&∵39;]="°®Ë¼×ÊÔ´Íø";$member∵∵∵...
ͬ²½µ÷ÓùÌÈ»¼òµ¥£¬µ«Ê¹ÓÃÒì²½µ÷ÓòÅÊÇÎÒÃÇÕæÕý³£ÓõÄÊֶΡ£Ê¹ÓÃÒì²½µ÷ÓõÄʱºò£¬ÐèÒª´¥·¢readystatechangeʼþ£¬È»ºó¼ì²âreadyStateÊôÐÔ¼´¿É¡£Õâ¸öÊôÐÔÓÐÎå¸öÖµ£ºÖµ×´Ì¬ËµÃ÷0δ³õʼ»¯ÉÐδµ÷ÓÃopen()·½·¨1Æô¶¯ÒÑ
Ò»£®XMLHttpRequest<font∵color="#f00">Ajax</font>¼¼ÊõºËÐÄÊÇXMLHttpRequest¶ÔÏó(¼ò³ÆXHR)£¬ÕâÊÇÓÉ΢ÈíÊ×ÏÈÒýÈëµÄÒ»¸öÌØÐÔ£¬ÆäËûä¯ÀÀÆ÷ÌṩÉ̺óÀ´¶¼ÌṩÁËÏàͬµÄʵÏÖ¡£ÔÚXHR³öÏÖ֮ǰ£¬<font∵color="#f00">Ajax</font>ʽµÄͨÐűØÐë½èÖúһЩhackÊÖ¶ÎÀ´...