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

¹úÇìÉ¢·Ö£¬Ë³±ãÌÖÂÛÒ»¸öAJAXÎÊÌâ

¼ÙÈçÒ»¸öÒ³ÃæÉÏÓÐN¸ö²Ù×÷£¬¶¼ÒªÓÃAJAX  ²»Óÿؼþ£¬×Ô¼ºÐ´JS
  ÀýÈç <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="">aaaa </a>
ÏÖÔÚÿ¸öÁ´½Ó¶¼ÒªÓÃAJAX£¬ÇÒÿ¸ö²Ù×÷¶¼²»Í¬¡£
  ÎÒÓõÄÊÇÿ¸öonclickÀï¶¼µ÷ÓÃͬһ¸öº¯Êý£¬È»ºó´«ÖµÅжÏÊÇʲô²Ù×÷
Òª²»¾ÍÊÇдN¸öº¯Êý£¬Ã¿¸öº¯ÊýÀï¶¼´´½¨¶ÔÏó
  ÇëÎÊ´ó¼Ò»¹ÓÐʲôºÃ·½·¨Ã»£¿
Ä÷ÖÀ´

jf£¬È»ºóÌṩһ¸ö˼·£¬Äã¿ÉÒÔ´«µÝһЩ²ÎÊýµ½·þÎñ¶Ë£¬·þÎñ¶ËÀ´´¦Àí²»Í¬µÄ²Ù×÷¡£

½Ó·Ö..

ÒýÓÃ
jf£¬È»ºóÌṩһ¸ö˼·£¬Äã¿ÉÒÔ´«µÝһЩ²ÎÊýµ½·þÎñ¶Ë£¬·þÎñ¶ËÀ´´¦Àí²»Í¬µÄ²Ù×÷¡£
º¹Ò»ÏÂ
ÎÒÏÖÔÚ¾ÍÊÇÒª¿¼ÂÇ´úÂëÓÅ»¯µÄÎÊÌâ

ͨ¹ýjquery»ò´«Öµµ½functionʵÏÖµ÷ÓÃ

½Ó·Ö¡£
LS£¬¸Ð¾õÕâÑùҲû¶à´óÓÅ»¯°¡£¬Èç¹û²Ù×÷ÊÇÔÚºǫ́ʵÏֵϰ¡£²úÉúµÄÊý¾Ý´«ÊäÁ¿ÊÇÒ»ÑùµÄ£¬²»¹ýÊǰѡ°ÅжÏÊÇʲô²Ù×÷¡±´Ó·þÎñÆ÷¶ËÄõ½¿Í»§¶Ë¡£¡£µ±È»Èç¹ûÂ¥Ö÷ÕâÑùÓõ½ajaxµÄÁ´½Ó·Ç³£¶àµÄ»°¾ÍÁí˵ÁË¡£

jf

·¢ÏÖ×îº


Ïà¹ØÎÊ´ð£º

¹úÇì»ùÓÚAjaxµÄ¸öÈ˲©¿ÍÍøÕ¾ÉÏÏߣ¬É¢·Ö100

¾­¹ýÒ»¸öÐÇÆÚµÄ²»¶ÏŬÁ¦£¬ÎҵĻùÓÚAjax+SSH(Óеãµãɱ¼¦ÓÃÅ£µ¶£¬ºÇºÇ)µÄ¸öÈ˲©¿ÍÖÕÓÚ¿ÉÒÔÕýʽÉÏÏßÁË¡£
ÏÖÔÚÉ¢·Ö½ÓÊܸ÷λ´óÏÀµÄ±ÉÊÓ¡£
ÍøÖ· www.bleehome.cn  BLEE HOME

(±¾À´Ïë¶àÉ¢µã£¬µ«ËµÎÒÖ»ÄÜÉ ......

AjaxÖлص÷º¯ÊýµÄ´¦Àí½á¹ûûÓзµ»Ø£¿

JScript code:

function callback() {
alert(18); //²âÊÔÊÇ·ñµ÷ÓÃÁËcallback»Øµ÷º¯Êý
if (httpRequest.readyState==4) {
if(httpRequest.status==200){
alert(3); //²âÊÔÊ ......

ajaxµÄʹÓÃÎÊÌâ

ajaxʹÓÃÖÐÓöµ½¼¸¸öÎÊÌ⣬Çë¸÷λ°ïæ¡£

1¡¢Ê¹Óà alert(xmlhttp.responsetext); µ¯³öµÄÈ´ÊÇÕû¸öÒ³ÃæµÄHTMLÎı¾¡£
2¡¢Ê¹ÓÃxmlhttp·¢³öµÄÇëÇó£¬ÔÚÁíÒ»Ò³ÃæµÄPage_LoadÀͨ¹ýÓï¾äµÃµ½Ò»¸ö±íµÄÖµ£¬ÈçºÎ½«Õâ¸ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ