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

ÀûÓÃGoogle AJAX ¿âÈÃÄãµÄwordpress¼ÓËÙ1 3Ãë


ÓùýWordpressµÄÅóÓѶ¼ÖªµÀ£¬ÒòΪWordpressµÄ¿ª·ÅÐÔ£¬¿ÉÒÔ×°ºÜ¶à²å¼þ£¬²¢ÇÒ
¸÷ÖÖÖ÷ÌâÒ²ÊÇÁ¼Ý¬²»Æ룬ºÜ¶à×öÖ÷ÌâµÄÈ˱¾Éí¿ÉÄÜÊÇÉè¼ÆÈËÔ±£¬¶ÔÓÚSEOºÍËٶȿ¼ÂDZ¾Éí²»Ì«¶à£¬ËùÒÔÔì³ÉWordpress·Ç³£ÅÓ´ó£¬ÓÐʱºòÊ×Ò³Òªµ½
500kÖÁ1MÕâÑùµÄˮƽ¡£¸ù¾ÝÏÖÔÚ¹úÄÚÍøËÙ£¬Ò»°ã¶¼ÊÇÒÔ512k»òÕß1M£¬ÄÇôÒÔÊ×Ò³500KÀ´¿´£¬È«ËÙÏÂÔØÐèÒª10Ãë×óÓÒ£¬ºÎ¿öÓû§µÄÍøÂç¿ÉÄÜͬʱ±»
ÆäËü³ÌÐòÕ¼Ó㬱ÈÈç˵´ò¿ª¼¸¸öÍøÒ³£¬»òÕßÕýÔÚÏÂÔØ£¬Õâ¾Íµ¼ÖÂÔ­±¾½ôÕŵÄÍøÂç×ÊÔ´±äµÃ¸üΪ½ôÇΡ£
ÏÖÔÚ´ó¼ÒÓõÄwordpress¶¼Ê¹ÓÃÁËjQueryÀà¿â£¬Õâ¸öÀà¿âÔÚwordpress±¾ÉíÓÐ58kÖ®¶à£¬¶øGZipѹËõ¹ýºóµÄjQueryÖ»ÓÐ
19K¡£GoogleÔç¾ÍÒѾ­Îª´ó¼ÒÌṩһ¸öAjax¿â£¬ÒòΪGoogle±¾ÉíÔÚÈ«ÇòµÄCDN£¬¿ÉÒÔÈÃÓû§¾Í½üÏÂÔØAjax¿â£¬²¢ÇÒÏÖÔںܶàÕ¾µã¶¼Óõ½ÁË
GoogleµÄAjax¿â£¬ÄÇôµ±Óû§·ÃÎÊÆäËüʹÓÃGoogle
Ajax¿âµÄÍøÕ¾ºóÔÙ·ÃÎÊÄãµÄÍøÕ¾£¬¾Í¿ÉÒÔÖ±½Ó´Ó»º´æÖÐÈ¥¶ÁÈ¡£¬¶ø²»ÐèÒªÖØÐÂÇëÇó·þÎñÆ÷¡£ÓеãÀàËÆÓÚP2PµÄ×÷Óã¬Ê¹ÓõÄÈËÔ½¶à¾ÍÔ½¿ì£¬µ±È»ÕâºÍp2p²»
Ò»Ñù£¬Õâ¸ö¿ìÊÇÓÐÏ޵ġ£
Ôõô×öÄØ£¿ÎÒÃÇÐèÒª½«wp-includes\script-loader.phpÎļþµÄµÚ121ÐУ¨²»Ò»¶¨»á׼ȷ£¬¿ÉÒÔËÑË÷Ò»ÏÂ"/wp-
includes/js/jquery/jquery.js"£©£¬×¢Ê͵ôÔ­À´µÄ//$scripts->add( 'jquery',
'/wp-includes/js/jquery/jquery.js', false,
'1.3.2');£¬Ôö¼ÓÒ»ÐУº$scripts->add( 'jquery',
'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js',
false, '1.3.2');£¬ÎÒÃÇ°ÑwordpressµÄjquery¸ÄΪgoogleµÄajaxÀà¿â£¬È»ºóÓÃfirebugÀ´¿´Ò»ÏÂЧ¹û¡£
´ÓÉÏͼÎÒÃÇ¿ÉÒÔ¿´µ½£¬jqueryÊÇ´Óajax.googleapis.comÏÂÔصģ¬²¢ÇÒ´óС±ä³ÉÁË19k£¬¼ÙÈçÓû§Ã»ÓÐÏÂÔعýÕâ¸ö¿â£¬ÎÒÃǵÄÍø
Õ¾ËÙ¶ÈÀíÂÛÉÏ¿ÉÒÔÌá¸ßÒ»Ãë×óÓÒ£¨°´±ê×¼ÍøËÙ£©¡£
ÐèҪעÒâµÄÊÇ£¬ÔÚscript-loader.phpÖиü¸ÄΪgoogle
ajaxÖ®ºó£¬ºǫ́ÓпÉÄÜ»á³öÏֽű¾´íÎóµÄÎÊÌ⣬ÄãÐèÒªÔÚwp-admin/admin-header.phpÖеÄ<head>±êÇ©ÄÚÔö¼ÓÒ»
ÌõÓï¾ä£º<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"&
gt;</script>¡£µ«ÕâÑù¿ÉÄÜ»áÔÚºǫ́¹ÜÀíµÄʱºò¼ÓÔØÁ½¸öajax¿â£¬¿ÉÕâÑùÓÐʲô¹ØϵÄØ£¿ÎÒÃÇ×îÖØÒªÊÇÈÃÓû§¿ì£¬ÎÒÒ²ÀÁµÃÈ¥×·¾¿Ëü
ÊÇʲôԭÒòÁË£¬×Ô¼ºÂýÒ»µãÎÞËùν°É¡£
¸½£º
GoogleµÄAjax¿âÌṩ¶àÖÖAjaxµÄÀà¿â£¬ÈçjQuery,
prototypeµÈ£¬²¢ÇÒÓжàÖÖ°æ±¾£¬ÏêÇéÇë·ÃÎÊ£ºhttp://code.google.com/intl/zh-CN/ap


Ïà¹ØÎĵµ£º

jquery ajaxµÄload()·½·¨


oad()·½·¨
    load( url [,data] [,callback])    dataÊÇObjectÀàÐÍ£¬·¢ËÍÖÁ·þÎñÆ÷µÄkey/valueÊý¾Ý
        Àý£º
$(function(){
     $("#send").click(function(){
         $("#resText").load("test.html ......

AjaxÎÞ·¨³¹µ×ɾ³ýSessionµÄÊôÐÔ

     ×î½üÔÚÓÃAjax×öµÇ¼´°¿Ú£¬µ«ÊÇlogoutµÄʱºòÐèÒª¶Ôsession½øÐд¦Àí¡£ÓõÄÊÇsession.removeAttribute()º¯Êý½øÐÐlogout¡£µ«ÊÇ£¬ÊÂʵ֤Ã÷£¬ÔÚlogoutÒÔºó£¬ÔٴεǼµÄʱºò£¬²¢²»Äܵǽ³É¹¦£¬Ñ¹¸ù²»»á½øÈëactionÖ´ÐÐÏàÓ¦µÄ·½·¨£¨hqlÓï¾äҲûÓÐÖ´ÐУ©¡£
     Ϊ´Ë£¬¾Ý˵ÓÐÁ½ÖÖ·½·¨½ ......

jQueryÓëasp.net ajaxÎÄÕÂÁ½Æª

1.Using jQuery with ASP
.NET
http://dotnetslackers.com/articles/ajax/using-jquery-with-asp-net.aspx
°üÀ¨jQueryÔõôµ÷ÓÃasp.net web service
2.jQuery and ASP.NET AJAX
UpdatePanel
http://www.dotnetfunda.com/articles/article471-jquery-and-aspnet-ajax-updatepanel.aspx
²¿·Ö¸üкóÔõô±£³ÖjQueryÓ¦Ó ......

AjaxÀúÏÕ¼Ç 1

½ñÌì³­Á˶ÎÊéÉÏС´úÂ룬´úÂëÈçÏÂ
<html>
<head>
<script type="text/javascript" src="zxml.src.js"></script>
<script type="text/javascript">
function start() {
var oXmlHttp = zXmlHttp.createRequest();
oXmlHttp.open("get", "info11.txt", true);
oXmlHttp.onreadystatecha ......

Ajax ×ܽá

Ajax µÄ¸ÅÄ
AjaxÌá³öÕßJesse James GarrettÔÚ¡¶Ajax:Ò»¸öWebÓ¦ÓõÄÐÂ;¾¶¡·ÖÐÌáµ½AjaxΪ“Asynchronous JavaScript + XML”µÄ¼ò³Æ£¬Ò²¾ÍÊÇÒì²½µÄJavaScriptºÍXML´¦Àí¡£
ÆäÖаüº¬£º
ÓÃXHTMLºÍCSS½øÐлùÓÚ±ê×¼µÄ±íʾ·½Ê½£º 
¡¡¡¡²ÉÓÃDOM(document object model)¶¯Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ