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

jquery+ajaxʵÏÖÎÞË¢ÐÂÌá½»µÄ¹¦ÄÜ

   <script type="text/javascript" src="jquery-1.3.2.min.js" mce_src="js/jquery.js"></script>  
   <input name="writer" id="writer" type="text" value="" />  
   <input name="pass" id="pass" type="password" value="" />  
   <input type="submit" name="button" id="button" value="Ìá½»" /> 
    <!--ÕâÀï²»ÐèÒªform,ÒòΪÌύʱcallÒ»¸öº¯Êý   -->
    <script type="text/javascript"> 
     
    $(document).ready(function(){         //DOMµÄonloadʼþ´¦Àíº¯Êý  
       $("#button").click(function(){           //µ±°´Å¥button±»µã»÷ʱµÄ´¦Àíº¯Êý  
         postdata();                                       //button±»µã»÷ʱִÐÐpostdataº¯Êý  
     });  
   });  
  
   function postdata(){                              //Ìá½»Êý¾Ýº¯Êý  
      $.ajax({                                                  //µ÷ÓÃjqueryµÄajax·½·¨  
        type: "POST",    


Ïà¹ØÎĵµ£º

ÓÃAJAXµ÷ÓÃXMLʱ¾¹È»²»ÄÜ°üº¬ÈκηûºÅ

ÎÒÓÃActiveXObject("Microsoft.xmldom")À´×°ÔØxmlÎĵµÊ±£¬¾¹È»ÀÏÊÇÌáʾװÔØʧ°Ü£¬ºóÀ´ÉÏÍøËÑË÷ÁËÏ£¬ËµÊDz»ÄÜÖ±½Ó°üº¬Õâ5¸ö·ûºÅ£¨'><&"£©£¬±ØÐëÑ¡ÓÃ&xx;·½Ê½À´×ªÒ壬¿ÉÎÒÕÒ±éXMLҲû·¢ÏÖÕâЩ¡£
ºóÀ´ÎÒ¶ÀÐÐÅųý£¬²Å·¢ÏÖÓÐÒ»¸öÔªËصÄÊôÐÔֵΪÓГ|”£¬È¥³ýºó¾ÍÕý³£ÁË¡£ÎÒÕæÊǾõµÃÆæ¹Ö£¬ÍøÉÏҲûÓÐ˵ ......

»ùÓÚJQuery¿ò¼ÜµÄAJAX,AJAXµÄÈýÖÖʵÏÖ·½Ê½

»ùÓÚJQuery¿ò¼ÜµÄAJAX
Ç°¼¸Ìì·¢Á˸öÌù£¬·ÖÏíÁËprototype¿ò¼Ü¹ØÓÚAJAX·½ÃæµÄѧϰ¹ý³Ì¡£È»ºóÓÐÈË˵jquery¿ò¼Ü¸ü·½±ã¡£
ÕýºÃÏîÄ¿ÖÐ×¼±¸Ê¹ÓÃthickbox£¬ÓÚÊǸɴàÅ×Æúprototype.js£¬¿´Æðjquery.jsÁË¡£JQueryȷʵ²»´í£¬Ìå»ý±È PrototypeСÁËÐí¶à£¬¶øÇÒʹÓÃÆðÀ´¸ü·½±ã¸üÁé»î¡£ÓÐÈË˵PrototypeÏñJAVA£¬Õýͳ£»¶øJQueryÏñRuby£¬Áé»î£ ......

ajaxѧϰ±Ê¼Ç1

<html>
<head>
<title></title>
</head>
<mce:script type="text/javascript"><!--
var xmlHttp = false;
try{
xmlHttp = new XMLHttpRequest();
}catch(trymicrosoft){
try{
xmlHttp = new ActiveXObject("Msxml2.XMLHT ......

AjaxÎÞË¢·ÖÒ³

jsÎļþ:
var where=" where pd_Isjifen=0 and pd_Isok=1"; //²éѯÌõ¼þ
var psize=16; //²éѯÊý¾ÝÊýÄ¿
var pindex=0;//µ±Ç°Ò³Êý
var order=" order by pd_Update desc,type_sort,pd_brand,pd_typeid"; //ÅÅÐòÌõ¼þ
var temp=0; //Ä£°åÃû³Æ
var Pcount=0;

//»ñÈ¡²ÎÊý
function getUrlPara(p ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ