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

AJAX ¿â

 BODY { FONT-FAMILY:Tahoma; FONT-SIZE:10pt }
P { FONT-FAMILY:Tahoma; FONT-SIZE:10pt }
DIV { FONT-FAMILY:Tahoma; FONT-SIZE:10pt }
TD { FONT-FAMILY:Tahoma; FONT-SIZE:10pt }
AJAX ¿â API ÊÇÒ»ÖÖÄÚÈÝ·Ö²¼ÍøÂ磬¿ÉÔØÈë×îÊÜ»¶Ó­µÄ¿ªÔ´ JavaScript ¿âµÄ¼Ü¹¹¡£Í¨¹ýʹÓà Google AJAX API ÔØÈë³ÌÐòµÄ
google.load()
·½·¨£¬ÄúµÄÓ¦ÓóÌÐòÄܹ»Ñ¸ËÙ´ÓÈ«ÇòÈκÎλÖ÷ÃÎʲ»¶ÏÔö³¤µÄ¡¢×îÊÜ»¶Ó­µÄ¿ªÔ´ JavaScript ¿âÁбí
 
 
<script src="http://www.google.com/jsapi"></script>
  google.load("jquery", "1.3.1");
  google.load("jqueryui", "1.5.3");
  google.load("prototype", "1.6.0.3");
  google.load("scriptaculous", "1.8.2");
  google.load("mootools", "1.2.1");
  google.load("dojo", "1.2.3");
  google.load("swfobject", "2.1");
  google.load("yui", "2.6.0");
 
Ajax ¿â
 Ã¿¸ö¿â¶¼¼È¿ÉÒÔͨ¹ý
google.load()
·ÃÎÊ£¬Ò²¿ÉÒÔÖ±½Óͨ¹ý
<script/>
±êÇ©·ÃÎÊ¡£
google.load()
·½·¨ÌṩÁ˴󲿷ֹ¦ÄܺÍÐÔÄÜ¡£ÔÚºóÃæµÄС½ÚÖУ¬ÎÒÃǼǼÁËËùÓпÉʹÓõĿ⡣¶ÔÓÚÿ¸ö¿â£¬ÎÒÃÇÁгöÁËËüµÄÃû³Æ£¨ÔÚ
google.load()
ÖÐʹÓõÄÃû³Æ£©¡¢¸Ã¿âÏÖÓеÄËùÓа汾µÈ¡£
 
jQuery
Ãû³Æ£ºjquery
°æ±¾£º1.2.3¡¢1.2.6¡¢1.3.0¡¢1.3.1
ÔØÈëÇëÇó£º
google.load("jquery", "1.3.1");
¸½¼ÓÏuncompressed:true£¬ÀýÈç

google.load("jquery", "1.3.1", {uncompressed:true});
·¾¶£ºhttp://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js
·¾¶(u)£ºhttp://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.js
ÍøÕ¾£ºhttp://jquery.com/
×¢Ò⣺ÓÉÓÚ 1.2.5 ºÍ 1.2.4 ÔÚ×ÔÈ»»·¾³ÏµÄÊÙÃü¶ÌÇÒ²»Îȶ¨£¬Òò´Ëδ½øÐÐÍйܡ£
 
jQuery UI
Ãû³Æ£ºjqueryui
°æ±¾£º1.5.2¡¢1.5.3
ÔØÈëÇëÇó£º
google.load("jqueryui", "1.5.3");
¸½¼ÓÏuncompressed:true£¬ÀýÈç

google.load("jqueryui", "1.5"


Ïà¹ØÎĵµ£º

¼òµ¥AJAX ʹÓÃ

 var xmlHttp;
    function createXMLHttpRequestss() {
     if (window.ActiveXObject) {
      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
     }else if (window.XMLHttpRequest) {
 & ......

AjaxÌØЧ ¶¯Ì¬¼ÓÔصÄFAQ Ö®¶þ

±¾ÊµÀýʹÓÃÃûΪfaqµÄÊý¾Ý¿â±í£¬°üº¬µÄÊý¾ÝÈçͼ1.2Ëùʾ¡£¾ßÌåµÄ´´½¨Êý¾Ý±íÓï¾äÈçÏ£º
 
CREATE TABLE 'faq' (
  'id' int(11) NOT NULL auto_increment,
  'faq' varchar(255) NOT NULL,
  'detail' varchar(255) NOT NULL,
  PRIMARY KEY  ('id')
)
ͼ1.2  ±ífaq°üº¬µÄÊý¾Ý
Ö÷ ......

AjaxÌØЧ ¶¯Ì¬¼ÓÔصÄFAQ Ö®Èý

Ò³ÃæÖÐÏÔʾÁË3¸öÎÊÌ⣬·Ö±ð±àºÅΪ1¡¢2¡¢3¡£Ã¿¸öÎÊÌâ±íÏÖΪһ¸ö³¬Á´½Ó£¬µ¥»÷³¬Á´½Ó´¥·¢loadFAQº¯Êý¡£Ã¿¸öÎÊÌâÏÂÃæ°üº¬Ò»¸öÓÃÓÚÏÔʾ´ð°¸µÄdiv£¬idÊôÐÔÉèÖÃΪ“faqDetail+ÎÊÌâ±àºÅ”£¬Í¨¹ýstyle="display:none"ĬÈÏÉèÖÃΪÒþ²Ø¡£ÏêϸµÄº¯Êý˵Ã÷Çë²Î¿¼´úÂëÖеÄ×¢ÊÍ¡£
 
<%@ page contentType="text/plain; c ......

AjaxÌØЧ ¸ù¾ÝÓÊÕþ±àÂë»ñÈ¡µØÇøÐÅÏ¢ Ö®Ò»

 ÔںܶàϵͳÖУ¬ÐèÒªÓû§Ìîд¸öÈË×ÊÁÏ£¬ÆäÖаüº¬µØÇø¡¢³ÇÊС¢ÓÊÕþ±àÂëµÈÐÅÏ¢¡£¶øÓÊÕþ±àÂë±¾Éí°üº¬Á˵ØÇøºÍ³ÇÊÐÐÅÏ¢£¬ËùÒÔ¿ÉÒÔÀûÓô˹æÔò¼ò»¯²Ù×÷¡£Óû§Ö»ÐèÒªÊäÈëÓÊÕþ±àÂ룬ϵͳ¸ù¾ÝÓÊÕþ±àÂë×Ô¶¯È¡µÃµØÇøÐÅÏ¢¡£ÕâÑù×öʹµÃÓû§¿ÉÒÔ»ñµÃ¸üºÃµÄʹÓÃÌåÑ飬Ҳ¿ÉÒÔ¼õÉÙ´íÎóµÄ·¢Éú¡£
ҪʵÏÖ×Ô¶¯»ñÈ¡µØÇøÐÅÏ¢£¬Ö÷Òª¿¼ÂÇ3¸öÎÊÌ ......

AjaxÌØЧ ¶¯Ì¬Ê÷ÐÎÁбí Ö®¶þ

¼¼ÊõÒªµã
ÔÚ»ù±¾Ô­ÀíµÄ½éÉÜÖУ¬Á˽⵽ͨ¹ýÔÚ¸¸½ÚµãÄÚ¶¯Ì¬´´½¨×ӽڵ㣬²¢ÀûÓÃÑùʽ±íËõ½øÍê³ÉÊ÷ÐÎÁбíµÄ»ù±¾¿ò¼Ü¡£³ýÁËÕâÒ»µãÍ⣬»¹ÓÐÏÂÃæһЩÎÊÌâÐèÒª¿¼ÂÇ¡£
1£®½«¸¸½ÚµãËùÓеÄ×Ó½Úµã·ÅÈëÒ»¸öÈÝÆ÷ÖÐ
»ù±¾Ô­ÀíÒ³ÃæÖнö°üº¬ÁË´´½¨×Ó½ÚµãµÄ¹¦ÄÜ£¬²»¿ÉÒÔ½«´´½¨ºÃµÄ½ÚµãÔÙ½øÐйرղÙ×÷¡£Êµ¼ÊÓ¦ÓÃÖв˵¥×ÜÊÇ°üº¬´ò¿ªºÍ¹Ø±ÕÁ½ÖÖ² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ