锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲人成网站免费播放,亚洲视频人成在线播放,亚洲婷婷综合色高清在线http://m.tkk7.com/qileilove/category/54306.html涓嶆兂鍋氬睂涓濈殑鐮佸啘錛屼笉鏄ソ欏圭洰緇忕悊錛佸睂涓濈敓娑粠姝ゅ紑濮嬶紒zh-cnFri, 25 Apr 2014 13:24:14 GMTFri, 25 Apr 2014 13:24:14 GMT60AJAX 鏁版嵁搴撳疄渚?/title><link>http://m.tkk7.com/qileilove/articles/412930.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Fri, 25 Apr 2014 05:58:00 GMT</pubDate><guid>http://m.tkk7.com/qileilove/articles/412930.html</guid><wfw:comment>http://m.tkk7.com/qileilove/comments/412930.html</wfw:comment><comments>http://m.tkk7.com/qileilove/articles/412930.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/qileilove/comments/commentRss/412930.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/qileilove/services/trackbacks/412930.html</trackback:ping><description><![CDATA[<h1><div style="display: inline-block;"><div class="ao4u24k" id="intro" style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; font-weight: normal; line-height: normal; background-color: #f9f9f9;"><p style="margin: 0px; padding: 0px; border: 0px; line-height: 18px;"><span style="margin: 0px; padding: 0px; border: 0px; font-family: 寰蔣闆呴粦; font-size: 14px; font-weight: 800;">AJAX 鍙敤鏉ヤ笌鏁版嵁搴撹繘琛屽姩鎬侀氫俊銆?/span></p></div></div></h1><h2 style="margin: 0px; padding: 0px; border: 0px; font-family: 寰蔣闆呴粦; font-size: 14px;">AJAX 鏁版嵁搴撳疄渚?/h2><h1><div style="display: inline-block;"><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; font-weight: normal; line-height: normal; background-color: #f9f9f9;"><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">涓嬮潰鐨勪緥瀛愬皢婕旂ず緗戦〉濡備綍閫氳繃 AJAX 浠庢暟鎹簱璇誨彇淇℃伅錛?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">璇峰湪涓嬮潰鐨勪笅鎷夊垪琛ㄤ腑閫夋嫨涓涓鎴鳳細(xì)</p><form action="http://www.w3school.com.cn/ajax/ajax_database.asp" style="margin: 15px 0px 0px; padding: 0px; border: 0px;"><label style="margin: 0px; padding: 0px; border: 0px;">璇烽夋嫨涓浣嶅鎴鳳細(xì) <select name="customers" style="margin: 15px 0px 0px; padding: 0px; border-color: #bebebe; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; height: 25px;"> <option value="APPLE" style="margin: 0px; padding: 0px; border: 0px;">Apple Computer, Inc.</option> <option value="BAIDU " style="margin: 0px; padding: 0px; border: 0px;">BAIDU, Inc</option> <option value="Canon" style="margin: 0px; padding: 0px; border: 0px;">Canon USA, Inc.</option> <option value="Google" style="margin: 0px; padding: 0px; border: 0px;">Google, Inc.</option> <option value="Nokia" style="margin: 0px; padding: 0px; border: 0px;">Nokia Corporation</option> <option value="SONY" style="margin: 0px; padding: 0px; border: 0px;">Sony Corporation of America</option> </select></label></form><div class="4ok8eqg" id="txtHint" style="margin: 15px 0px 0px; border: 0px; width: 710px; color: #0479a7; font-weight: bold;">瀹㈡埛淇℃伅灝嗗湪姝ゅ鍒楀嚭銆?/div><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴涓嬫簮浠g爜</a></p></div></div></h1><h2 style="margin: 0px; padding: 0px; border: 0px; font-family: 寰蔣闆呴粦; font-size: 14px;">瀹炰緥瑙i噴 - showCustomer() 鍑芥暟</h2><h1><div style="display: inline-block;"><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; font-weight: normal; line-height: normal; background-color: #f9f9f9;"><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">褰撶敤鎴峰湪涓婇潰鐨勪笅鎷夊垪琛ㄤ腑閫夋嫨鏌愪釜瀹㈡埛鏃訛紝浼?xì)鎵ц鍚嶄?"showCustomer()" 鐨勫嚱鏁般傝鍑芥暟鐢?"onchange" 浜嬩歡瑙﹀彂錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">function showCustomer(str) { var xmlhttp; if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {<span style="margin: 0px; padding: 0px; border: 0px; color: #999999;">// code for IE7+, Firefox, Chrome, Opera, Safari</span> xmlhttp=new XMLHttpRequest(); } else {<span style="margin: 0px; padding: 0px; border: 0px; color: #999999;">// code for IE6, IE5</span> xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","getcustomer.asp?q="+str,true); xmlhttp.send(); } </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">showCustomer() 鍑芥暟鎵ц浠ヤ笅浠誨姟錛?/p><ul style="margin: 10px 0px 0px 35px; padding: 0px; border: 0px;"><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">媯(gè)鏌ユ槸鍚﹀凡閫夋嫨鏌愪釜瀹㈡埛</li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">鍒涘緩 XMLHttpRequest 瀵硅薄</li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">褰撴湇鍔″櫒鍝嶅簲灝辯華鏃舵墽琛屾墍鍒涘緩鐨勫嚱鏁?/li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">鎶婅姹傚彂閫佸埌鏈嶅姟鍣ㄤ笂鐨勬枃浠?/li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">璇鋒敞鎰忔垜浠悜 URL 娣誨姞浜嗕竴涓弬鏁?q 錛堝甫鏈夎緭鍏ュ煙涓殑鍐呭錛?/li></ul></div></div></h1><h2 style="margin: 0px; padding: 0px; border: 0px; font-family: 寰蔣闆呴粦; font-size: 14px;">AJAX 鏈嶅姟鍣ㄩ〉闈?/h2><h1><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; font-weight: normal; line-height: normal; background-color: #f9f9f9;"><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鐢變笂闈㈢殑 JavaScript 璋冪敤鐨勬湇鍔″櫒欏甸潰鏄?ASP 鏂囦歡錛屽悕涓?"getcustomer.asp"銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鐢?PHP 緙栧啓鏈嶅姟鍣ㄦ枃浠朵篃寰堝鏄擄紝鎴栬呯敤鍏朵粬鏈嶅姟鍣ㄨ璦銆傝鐪?a title="PHP 鍜?AJAX MySQL 鏁版嵁搴撳疄渚? style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">鐢?PHP 緙栧啓鐨勭浉搴旂殑渚嬪瓙</a>銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">"getcustomer.asp" 涓殑婧愪唬鐮佽礋璐e鏁版嵁搴撹繘琛屾煡璇紝鐒跺悗鐢?HTML 琛ㄦ牸榪斿洖緇撴灉錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;"><% response.expires=-1 sql="SELECT * FROM CUSTOMERS WHERE CUSTOMERID=" sql=sql & "'" & request.querystring("q") & "'" set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open(Server.Mappath("/db/northwind.mdb")) set rs=Server.CreateObject("ADODB.recordset") rs.Open sql,conn response.write("<table>") do until rs.EOF for each x in rs.Fields response.write("<tr><td><b>" & x.name & "</b></td>") response.write("<td>" & x.value & "</td></tr>") next rs.MoveNext loop response.write("</table>") %></pre></div></h1><img src ="http://m.tkk7.com/qileilove/aggbug/412930.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-04-25 13:58 <a href="http://m.tkk7.com/qileilove/articles/412930.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>AJAX ASP/PHP 璇鋒眰瀹炰緥http://m.tkk7.com/qileilove/articles/412929.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOFri, 25 Apr 2014 05:55:00 GMThttp://m.tkk7.com/qileilove/articles/412929.htmlhttp://m.tkk7.com/qileilove/comments/412929.htmlhttp://m.tkk7.com/qileilove/articles/412929.html#Feedback0http://m.tkk7.com/qileilove/comments/commentRss/412929.htmlhttp://m.tkk7.com/qileilove/services/trackbacks/412929.html

AJAX 鐢ㄤ簬鍒涢犲姩鎬佹ф洿寮虹殑搴旂敤紼嬪簭銆?/span>

AJAX ASP/PHP 瀹炰緥

涓嬮潰鐨勪緥瀛愬皢涓烘?zhèn)ㄦ紨绀哄綋鐢ㄦ埛鍦ㄨ緭鍏ユ涓敭鍏ュ瓧绗︽椨灱尵|戦〉濡備綍涓?web 鏈嶅姟鍣ㄨ繘琛岄氫俊錛?/p>

璇峰湪涓嬮潰鐨勮緭鍏ユ涓敭鍏ュ瓧姣嶏紙A - Z錛夛細(xì)

濮撴皬錛?input id="txt1" type="text" style="margin: 15px 0px 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; border: 1px solid #bebebe; font-family: 'Courier New', Courier, monospace; font-size: 12px; height: 30px;" />

寤鴻錛?/p>

浜茶嚜璇曚竴涓嬫簮浠g爜

瀹炰緥瑙i噴 - showHint() 鍑芥暟

褰撶敤鎴峰湪涓婇潰鐨勮緭鍏ユ涓敭鍏ュ瓧絎︽椂錛屼細(xì)鎵ц鍑芥暟 "showHint()" 銆傝鍑芥暟鐢?"onkeyup" 浜嬩歡瑙﹀彂錛?/p>

function showHint(str) { var xmlhttp; if (str.length==0)   {   document.getElementById("txtHint").innerHTML="";   return;   } if (window.XMLHttpRequest)   {// code for IE7+, Firefox, Chrome, Opera, Safari   xmlhttp=new XMLHttpRequest();   } else   {// code for IE6, IE5   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");   } xmlhttp.onreadystatechange=function()   {   if (xmlhttp.readyState==4 && xmlhttp.status==200)     {     document.getElementById("txtHint").innerHTML=xmlhttp.responseText;     }   } xmlhttp.open("GET","gethint.asp?q="+str,true); xmlhttp.send(); } 

婧愪唬鐮佽В閲婏細(xì)

濡傛灉杈撳叆妗嗕負(fù)絀?(str.length==0)錛屽垯璇ュ嚱鏁版竻絀?txtHint 鍗犱綅絎︾殑鍐呭錛屽茍閫鍑哄嚱鏁般?/p>

濡傛灉杈撳叆妗嗕笉涓虹┖錛宻howHint() 鍑芥暟鎵ц浠ヤ笅浠誨姟錛?/p>

  • 鍒涘緩 XMLHttpRequest 瀵硅薄
  • 褰撴湇鍔″櫒鍝嶅簲灝辯華鏃舵墽琛屽嚱鏁?/li>
  • 鎶婅姹傚彂閫佸埌鏈嶅姟鍣ㄤ笂鐨勬枃浠?/li>
  • 璇鋒敞鎰忔垜浠悜 URL 娣誨姞浜嗕竴涓弬鏁?q 錛堝甫鏈夎緭鍏ユ鐨勫唴瀹癸級(jí)

AJAX 鏈嶅姟鍣ㄩ〉闈?- ASP 鍜?PHP

鐢變笂闈㈢殑 JavaScript 璋冪敤鐨勬湇鍔″櫒欏甸潰鏄?ASP 鏂囦歡錛屽悕涓?"gethint.asp"銆?/p>

涓嬮潰錛屾垜浠垱寤轟簡涓や釜鐗堟湰鐨勬湇鍔″櫒鏂囦歡錛屼竴涓敤 ASP 緙栧啓錛屽彟涓涓敤 PHP 緙栧啓銆?/p>

ASP 鏂囦歡

"gethint.asp" 涓殑婧愪唬鐮佷細(xì)媯(gè)鏌ヤ竴涓悕瀛楁暟緇勶紝鐒跺悗鍚戞祻瑙堝櫒榪斿洖鐩稿簲鐨勫悕瀛楋細(xì)

<% response.expires=-1 dim a(30) '鐢ㄥ悕瀛楁潵濉厖鏁扮粍 a(1)="Anna" a(2)="Brittany" a(3)="Cinderella" a(4)="Diana" a(5)="Eva" a(6)="Fiona" a(7)="Gunda" a(8)="Hege" a(9)="Inga" a(10)="Johanna" a(11)="Kitty" a(12)="Linda" a(13)="Nina" a(14)="Ophelia" a(15)="Petunia" a(16)="Amanda" a(17)="Raquel" a(18)="Cindy" a(19)="Doris" a(20)="Eve" a(21)="Evita" a(22)="Sunniva" a(23)="Tove" a(24)="Unni" a(25)="Violet" a(26)="Liza" a(27)="Elizabeth" a(28)="Ellen" a(29)="Wenche" a(30)="Vicky"  '鑾峰緱鏉ヨ嚜 URL 鐨?q 鍙傛暟 q=ucase(request.querystring("q"))  '濡傛灉 q 澶т簬 0錛屽垯鏌ユ壘鏁扮粍涓殑鎵鏈夋彁紺?/span> if len(q)>0 then   hint=""   for i=1 to 30     if q=ucase(mid(a(i),1,len(q))) then       if hint="" then         hint=a(i)       else         hint=hint & " , " & a(i)       end if     end if   next end if  '濡傛灉鏈壘鍒版彁紺猴紝鍒欒緭鍑?"no suggestion" '鍚﹀垯杈撳嚭姝g‘鐨勫?/span> if hint="" then   response.write("no suggestion") else   response.write(hint) end if %> 

PHP 鏂囦歡

涓嬮潰鐨勪唬鐮佺敤 PHP 緙栧啓錛屼笌涓婇潰鐨?ASP 浠g爜浣滅敤鏄竴鏍風(fēng)殑銆?/p>

娉ㄩ噴錛?/span>濡傞渶鍦?PHP 涓繍琛岃繖涓緥瀛愶紝璇峰皢 url 鍙橀噺鐨勫鹼紙Javascript 浠g爜涓級(jí)鐢?"gethint.asp" 鏀逛負(fù) "gethint.php"銆?/p>

<?php // 鐢ㄥ悕瀛楁潵濉厖鏁扮粍 $a[]="Anna"; $a[]="Brittany"; $a[]="Cinderella"; $a[]="Diana"; $a[]="Eva"; $a[]="Fiona"; $a[]="Gunda"; $a[]="Hege"; $a[]="Inga"; $a[]="Johanna"; $a[]="Kitty"; $a[]="Linda"; $a[]="Nina"; $a[]="Ophelia"; $a[]="Petunia"; $a[]="Amanda"; $a[]="Raquel"; $a[]="Cindy"; $a[]="Doris"; $a[]="Eve"; $a[]="Evita"; $a[]="Sunniva"; $a[]="Tove"; $a[]="Unni"; $a[]="Violet"; $a[]="Liza"; $a[]="Elizabeth"; $a[]="Ellen"; $a[]="Wenche"; $a[]="Vicky";  //鑾峰緱鏉ヨ嚜 URL 鐨?q 鍙傛暟 $q=$_GET["q"];  //濡傛灉 q 澶т簬 0錛屽垯鏌ユ壘鏁扮粍涓殑鎵鏈夋彁紺?/span> if (strlen($q) > 0)   {   $hint="";   for($i=0; $i<count($a); $i++)     {     if (strtolower($q)==strtolower(substr($a[$i],0,strlen($q))))       {       if ($hint=="")         {         $hint=$a[$i];         }       else         {         $hint=$hint." , ".$a[$i];         }       }     }   }  // 濡傛灉鏈壘鍒版彁紺猴紝鍒欐妸杈撳嚭璁劇疆涓?"no suggestion" // 鍚﹀垯璁劇疆涓烘紜殑鍊?/span> if ($hint == "")   {   $response="no suggestion";   } else   {   $response=$hint;   }  //杈撳嚭鍝嶅簲 echo $response; ?>


欏哄叾鑷劧EVO 2014-04-25 13:55 鍙戣〃璇勮
]]>
AJAX - onreadystatechange 浜嬩歡http://m.tkk7.com/qileilove/articles/412928.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOFri, 25 Apr 2014 05:54:00 GMThttp://m.tkk7.com/qileilove/articles/412928.htmlhttp://m.tkk7.com/qileilove/comments/412928.htmlhttp://m.tkk7.com/qileilove/articles/412928.html#Feedback0http://m.tkk7.com/qileilove/comments/commentRss/412928.htmlhttp://m.tkk7.com/qileilove/services/trackbacks/412928.html

onreadystatechange 浜嬩歡

褰撹姹傝鍙戦佸埌鏈嶅姟鍣ㄦ椂錛屾垜浠渶瑕佹墽琛屼竴浜涘熀浜庡搷搴旂殑浠誨姟銆?/p>

姣忓綋 readyState 鏀瑰彉鏃訛紝灝變細(xì)瑙﹀彂 onreadystatechange 浜嬩歡銆?/p>

readyState 灞炴у瓨鏈?XMLHttpRequest 鐨勭姸鎬佷俊鎭?/p>

涓嬮潰鏄?XMLHttpRequest 瀵硅薄鐨勪笁涓噸瑕佺殑灞炴э細(xì)

灞炴?/th>鎻忚堪
onreadystatechange瀛樺偍鍑芥暟錛堟垨鍑芥暟鍚嶏級(jí)錛屾瘡褰?readyState 灞炴ф敼鍙樻椂錛屽氨浼?xì)璋冪敤璇ュ嚱鏁般?/td>
readyState

瀛樻湁 XMLHttpRequest 鐨勭姸鎬併備粠 0 鍒?4 鍙戠敓鍙樺寲銆?/p>

  • 0: 璇鋒眰鏈垵濮嬪寲
  • 1: 鏈嶅姟鍣ㄨ繛鎺ュ凡寤虹珛
  • 2: 璇鋒眰宸叉帴鏀?/li>
  • 3: 璇鋒眰澶勭悊涓?/li>
  • 4: 璇鋒眰宸插畬鎴愶紝涓斿搷搴斿凡灝辯華
status

200: "OK"

404: 鏈壘鍒伴〉闈?/p>

鍦?onreadystatechange 浜嬩歡涓紝鎴戜滑瑙勫畾褰撴湇鍔″櫒鍝嶅簲宸插仛濂借澶勭悊鐨勫噯澶囨椂鎵鎵ц鐨勪換鍔°?/p>

褰?readyState 絳変簬 4 涓旂姸鎬佷負(fù) 200 鏃訛紝琛ㄧず鍝嶅簲宸插氨緇細(xì)

xmlhttp.onreadystatechange=function()   {   if (xmlhttp.readyState==4 && xmlhttp.status==200)     {     document.getElementById("myDiv").innerHTML=xmlhttp.responseText;     }   } 

浜茶嚜璇曚竴璇?/a>

娉ㄩ噴錛?/span>onreadystatechange 浜嬩歡琚Е鍙?5 嬈★紙0 - 4錛夛紝瀵瑰簲鐫 readyState 鐨勬瘡涓彉鍖栥?/p>

浣跨敤 Callback 鍑芥暟

callback 鍑芥暟鏄竴縐嶄互鍙傛暟褰㈠紡浼犻掔粰鍙︿竴涓嚱鏁扮殑鍑芥暟銆?/p>

濡傛灉鎮(zhèn)ㄧ殑緗戠珯涓婂瓨鍦ㄥ涓?AJAX 浠誨姟錛岄偅涔堟?zhèn)ㄥ簲璇ヤ负鍒涘?XMLHttpRequest 瀵硅薄緙栧啓涓涓?span style="margin: 0px; padding: 0px; border: 0px; font-weight: bold;">鏍囧噯鐨勫嚱鏁幫紝騫朵負(fù)姣忎釜 AJAX 浠誨姟璋冪敤璇ュ嚱鏁般?/p>

璇ュ嚱鏁拌皟鐢ㄥ簲璇ュ寘鍚?URL 浠ュ強(qiáng)鍙戠敓 onreadystatechange 浜嬩歡鏃舵墽琛岀殑浠誨姟錛堟瘡嬈¤皟鐢ㄥ彲鑳戒笉灝界浉鍚岋級(jí)錛?/p>

function myFunction() { loadXMLDoc("ajax_info.txt",function()   {   if (xmlhttp.readyState==4 && xmlhttp.status==200)     {     document.getElementById("myDiv").innerHTML=xmlhttp.responseText;     }   }); } 

浜茶嚜璇曚竴璇?/a>



欏哄叾鑷劧EVO 2014-04-25 13:54 鍙戣〃璇勮
]]>
AJAX - 鏈嶅姟鍣ㄥ搷搴?/title><link>http://m.tkk7.com/qileilove/articles/412840.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Wed, 23 Apr 2014 08:04:00 GMT</pubDate><guid>http://m.tkk7.com/qileilove/articles/412840.html</guid><wfw:comment>http://m.tkk7.com/qileilove/comments/412840.html</wfw:comment><comments>http://m.tkk7.com/qileilove/articles/412840.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/qileilove/comments/commentRss/412840.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/qileilove/services/trackbacks/412840.html</trackback:ping><description><![CDATA[<div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>鏈嶅姟鍣ㄥ搷搴?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傞渶鑾峰緱鏉ヨ嚜鏈嶅姟鍣ㄧ殑鍝嶅簲錛岃浣跨敤 XMLHttpRequest 瀵硅薄鐨?responseText 鎴?responseXML 灞炴с?/p><table style="margin: 10px 0px 0px; padding: 0px; border-style: solid; border-color: #aaaaaa; border-collapse: collapse; width: 709.0908813476563px;"><tbody style="margin: 0px; padding: 0px; border: 0px;"><tr style="margin: 0px; padding: 0px; border: 0px;"><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5; width: 156.36363220214844px;">灞炴?/th><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5;">鎻忚堪</th></tr><tr style="margin: 0px; padding: 0px; border: 0px;"><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">responseText</td><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">鑾峰緱瀛楃涓插艦寮忕殑鍝嶅簲鏁版嵁銆?/td></tr><tr style="margin: 0px; padding: 0px; border: 0px;"><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">responseXML</td><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">鑾峰緱 XML 褰㈠紡鐨勫搷搴旀暟鎹?/td></tr></tbody></table></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>responseText 灞炴?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傛灉鏉ヨ嚜鏈嶅姟鍣ㄧ殑鍝嶅簲騫墮潪 XML錛岃浣跨敤 responseText 灞炴с?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">responseText 灞炴ц繑鍥炲瓧絎︿覆褰㈠紡鐨勫搷搴旓紝鍥犳鎮(zhèn)ㄥ彲浠ヨ繖鏍蜂嬌鐢細(xì)</p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">document.getElementById("myDiv").innerHTML=xmlhttp.responseText;</pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>responseXML 灞炴?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傛灉鏉ヨ嚜鏈嶅姟鍣ㄧ殑鍝嶅簲鏄?XML錛岃屼笖闇瑕佷綔涓?XML 瀵硅薄榪涜瑙f瀽錛岃浣跨敤 responseXML 灞炴э細(xì)</p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">璇鋒眰 <a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">books.xml</a> 鏂囦歡錛屽茍瑙f瀽鍝嶅簲錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlDoc=xmlhttp.responseXML; txt=""; x=xmlDoc.getElementsByTagName("ARTIST"); for (i=0;i<x.length;i++) { txt=txt + x[i].childNodes[0].nodeValue + "<br />"; } document.getElementById("myDiv").innerHTML=txt; </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p></div><img src ="http://m.tkk7.com/qileilove/aggbug/412840.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-04-23 16:04 <a href="http://m.tkk7.com/qileilove/articles/412840.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>AJAX - 鏈嶅姟鍣ㄥ搷搴?/title><link>http://m.tkk7.com/qileilove/articles/412750.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Mon, 21 Apr 2014 10:25:00 GMT</pubDate><guid>http://m.tkk7.com/qileilove/articles/412750.html</guid><wfw:comment>http://m.tkk7.com/qileilove/comments/412750.html</wfw:comment><comments>http://m.tkk7.com/qileilove/articles/412750.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/qileilove/comments/commentRss/412750.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/qileilove/services/trackbacks/412750.html</trackback:ping><description><![CDATA[<div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>鏈嶅姟鍣ㄥ搷搴?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傞渶鑾峰緱鏉ヨ嚜鏈嶅姟鍣ㄧ殑鍝嶅簲錛岃浣跨敤 XMLHttpRequest 瀵硅薄鐨?responseText 鎴?responseXML 灞炴с?/p><table style="margin: 10px 0px 0px; padding: 0px; border-style: solid; border-color: #aaaaaa; border-collapse: collapse; width: 709.0908813476563px;"><tbody style="margin: 0px; padding: 0px; border: 0px;"><tr style="margin: 0px; padding: 0px; border: 0px;"><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5; width: 156.36363220214844px;">灞炴?/th><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5;">鎻忚堪</th></tr><tr style="margin: 0px; padding: 0px; border: 0px;"><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">responseText</td><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">鑾峰緱瀛楃涓插艦寮忕殑鍝嶅簲鏁版嵁銆?/td></tr><tr style="margin: 0px; padding: 0px; border: 0px;"><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">responseXML</td><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">鑾峰緱 XML 褰㈠紡鐨勫搷搴旀暟鎹?/td></tr></tbody></table></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>responseText 灞炴?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傛灉鏉ヨ嚜鏈嶅姟鍣ㄧ殑鍝嶅簲騫墮潪 XML錛岃浣跨敤 responseText 灞炴с?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">responseText 灞炴ц繑鍥炲瓧絎︿覆褰㈠紡鐨勫搷搴旓紝鍥犳鎮(zhèn)ㄥ彲浠ヨ繖鏍蜂嬌鐢細(xì)</p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">document.getElementById("myDiv").innerHTML=xmlhttp.responseText;</pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>responseXML 灞炴?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傛灉鏉ヨ嚜鏈嶅姟鍣ㄧ殑鍝嶅簲鏄?XML錛岃屼笖闇瑕佷綔涓?XML 瀵硅薄榪涜瑙f瀽錛岃浣跨敤 responseXML 灞炴э細(xì)</p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">璇鋒眰 <a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">books.xml</a> 鏂囦歡錛屽茍瑙f瀽鍝嶅簲錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlDoc=xmlhttp.responseXML; txt=""; x=xmlDoc.getElementsByTagName("ARTIST"); for (i=0;i<x.length;i++) { txt=txt + x[i].childNodes[0].nodeValue + "<br />"; } document.getElementById("myDiv").innerHTML=txt; </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p></div><img src ="http://m.tkk7.com/qileilove/aggbug/412750.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-04-21 18:25 <a href="http://m.tkk7.com/qileilove/articles/412750.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>AJAX - 鍚戞湇鍔″櫒鍙戦佽姹?/title><link>http://m.tkk7.com/qileilove/articles/412739.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Mon, 21 Apr 2014 06:09:00 GMT</pubDate><guid>http://m.tkk7.com/qileilove/articles/412739.html</guid><wfw:comment>http://m.tkk7.com/qileilove/comments/412739.html</wfw:comment><comments>http://m.tkk7.com/qileilove/articles/412739.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/qileilove/comments/commentRss/412739.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/qileilove/services/trackbacks/412739.html</trackback:ping><description><![CDATA[<div class="4k224mc" id="intro" style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><p style="margin: 0px; padding: 0px; border: 0px; line-height: 18px;"><span style="margin: 0px; padding: 0px; border: 0px; font-family: 寰蔣闆呴粦; font-size: 14px; font-weight: 800;">XMLHttpRequest 瀵硅薄鐢ㄤ簬鍜屾湇鍔″櫒浜ゆ崲鏁版嵁銆?/span></p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>鍚戞湇鍔″櫒鍙戦佽姹?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傞渶灝嗚姹傚彂閫佸埌鏈嶅姟鍣紝鎴戜滑浣跨敤 XMLHttpRequest 瀵硅薄鐨?open() 鍜?send() 鏂規(guī)硶錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","test1.txt",true); xmlhttp.send(); </pre><table style="margin: 10px 0px 0px; padding: 0px; border-style: solid; border-color: #aaaaaa; border-collapse: collapse; width: 709.0908813476563px;"><tbody style="margin: 0px; padding: 0px; border: 0px;"><tr style="margin: 0px; padding: 0px; border: 0px;"><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5; width: 262.7272644042969px;">鏂規(guī)硶</th><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5;">鎻忚堪</th></tr><tr style="margin: 0px; padding: 0px; border: 0px;"><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">open(<em style="margin: 0px; padding: 0px; border: 0px;">method</em>,<em style="margin: 0px; padding: 0px; border: 0px;">url</em>,<em style="margin: 0px; padding: 0px; border: 0px;">async</em>)</td><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;"><p style="margin: 0px; padding: 0px; border: 0px; line-height: 18px;">瑙勫畾璇鋒眰鐨勭被鍨嬨乁RL 浠ュ強(qiáng)鏄惁寮傛澶勭悊璇鋒眰銆?/p><ul style="margin: 20px; padding: 0px; border: 0px; list-style-type: none;"><li style="margin: 0px; padding: 0px; border: 0px; list-style-type: disc;"><em style="margin: 0px; padding: 0px; border: 0px;">method</em>錛氳姹傜殑綾誨瀷錛汫ET 鎴?POST</li><li style="margin: 0px; padding: 0px; border: 0px; list-style-type: disc;"><em style="margin: 0px; padding: 0px; border: 0px;">url</em>錛氭枃浠跺湪鏈嶅姟鍣ㄤ笂鐨勪綅緗?/li><li style="margin: 0px; padding: 0px; border: 0px; list-style-type: disc;"><em style="margin: 0px; padding: 0px; border: 0px;">async</em>錛歵rue錛堝紓姝ワ級(jí)鎴?false錛堝悓姝ワ級(jí)</li></ul></td></tr><tr style="margin: 0px; padding: 0px; border: 0px;"><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">send(<em style="margin: 0px; padding: 0px; border: 0px;">string</em>)</td><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;"><p style="margin: 0px; padding: 0px; border: 0px; line-height: 18px;">灝嗚姹傚彂閫佸埌鏈嶅姟鍣ㄣ?/p><ul style="margin: 20px; padding: 0px; border: 0px; list-style-type: none;"><li style="margin: 0px; padding: 0px; border: 0px; list-style-type: disc;"><em style="margin: 0px; padding: 0px; border: 0px;">string</em>錛氫粎鐢ㄤ簬 POST 璇鋒眰</li></ul></td></tr></tbody></table></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>GET 榪樻槸 POST錛?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">涓?POST 鐩告瘮錛孏ET 鏇寸畝鍗曚篃鏇村揩錛屽茍涓斿湪澶ч儴鍒嗘儏鍐典笅閮借兘鐢ㄣ?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鐒惰岋紝鍦ㄤ互涓嬫儏鍐典腑錛岃浣跨敤 POST 璇鋒眰錛?/p><ul style="margin: 10px 0px 0px 35px; padding: 0px; border: 0px;"><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">鏃犳硶浣跨敤緙撳瓨鏂囦歡錛堟洿鏂版湇鍔″櫒涓婄殑鏂囦歡鎴栨暟鎹簱錛?/li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">鍚戞湇鍔″櫒鍙戦佸ぇ閲忔暟鎹紙POST 娌℃湁鏁版嵁閲忛檺鍒訛級(jí)</li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">鍙戦佸寘鍚湭鐭ュ瓧絎︾殑鐢ㄦ埛杈撳叆鏃訛紝POST 姣?GET 鏇寸ǔ瀹氫篃鏇村彲闈?/li></ul></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>GET 璇鋒眰</h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">涓涓畝鍗曠殑 GET 璇鋒眰錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","demo_get.asp",true); xmlhttp.send(); </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鍦ㄤ笂闈㈢殑渚嬪瓙涓紝鎮(zhèn)ㄥ彲鑳藉緱鍒扮殑鏄紦瀛樼殑緇撴灉銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">涓轟簡閬垮厤榪欑鎯呭喌錛岃鍚?URL 娣誨姞涓涓敮涓鐨?ID錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","demo_get.asp?t=" + <code style="margin: 0px; padding: 0px; border: 0px; font-family: 'Courier New', Courier, monospace; color: #0000dd;">Math.random()</code>,true); xmlhttp.send(); </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傛灉鎮(zhèn)ㄥ笇鏈涢氳繃 GET 鏂規(guī)硶鍙戦佷俊鎭紝璇峰悜 URL 娣誨姞淇℃伅錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","demo_get2.asp?fname=Bill&lname=Gates",true); xmlhttp.send(); </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>POST 璇鋒眰</h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">涓涓畝鍗?POST 璇鋒眰錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("POST","demo_post.asp",true); xmlhttp.send(); </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傛灉闇瑕佸儚 HTML 琛ㄥ崟閭f牱 POST 鏁版嵁錛岃浣跨敤 setRequestHeader() 鏉ユ坊鍔?HTTP 澶淬傜劧鍚庡湪 send() 鏂規(guī)硶涓瀹氭?zhèn)ㄥ笇鏈涘彂閫佺殑鏁版嵁錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("POST","ajax_test.asp",true); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send("fname=Bill&lname=Gates"); </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p><table style="margin: 10px 0px 0px; padding: 0px; border-style: solid; border-color: #aaaaaa; border-collapse: collapse; width: 709.0908813476563px;"><tbody style="margin: 0px; padding: 0px; border: 0px;"><tr style="margin: 0px; padding: 0px; border: 0px;"><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5; width: 262.7272644042969px;">鏂規(guī)硶</th><th style="margin: 0px; padding: 5px 15px 5px 5px; border: 1px solid #aaaaaa; vertical-align: baseline; background-color: #d5d5d5;">鎻忚堪</th></tr><tr style="margin: 0px; padding: 0px; border: 0px;"><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;">setRequestHeader(<em style="margin: 0px; padding: 0px; border: 0px;">header</em>,<em style="margin: 0px; padding: 0px; border: 0px;">value</em>)</td><td style="margin: 0px; padding: 5px 15px 5px 5px; border-style: solid; border-color: #aaaaaa; vertical-align: text-top; background-color: #efefef;"><p style="margin: 0px; padding: 0px; border: 0px; line-height: 18px;">鍚戣姹傛坊鍔?HTTP 澶淬?/p><ul style="margin: 20px; padding: 0px; border: 0px; list-style-type: none;"><li style="margin: 0px; padding: 0px; border: 0px; list-style-type: disc;"><em style="margin: 0px; padding: 0px; border: 0px;">header</em>: 瑙勫畾澶寸殑鍚嶇О</li><li style="margin: 0px; padding: 0px; border: 0px; list-style-type: disc;"><em style="margin: 0px; padding: 0px; border: 0px;">value</em>: 瑙勫畾澶寸殑鍊?/li></ul></td></tr></tbody></table></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>url - 鏈嶅姟鍣ㄤ笂鐨勬枃浠?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">open() 鏂規(guī)硶鐨?nbsp;<em style="margin: 0px; padding: 0px; border: 0px;">url</em> 鍙傛暟鏄湇鍔″櫒涓婃枃浠剁殑鍦板潃錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","ajax_test.asp",true);</pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">璇ユ枃浠跺彲浠ユ槸浠諱綍綾誨瀷鐨勬枃浠訛紝姣斿 .txt 鍜?.xml錛屾垨鑰呮湇鍔″櫒鑴氭湰鏂囦歡錛屾瘮濡?.asp 鍜?.php 錛堝湪浼犲洖鍝嶅簲涔嬪墠錛岃兘澶熷湪鏈嶅姟鍣ㄤ笂鎵ц浠誨姟錛夈?/p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>寮傛 - True 鎴?False錛?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">AJAX 鎸囩殑鏄紓姝?JavaScript 鍜?XML錛圓synchronous JavaScript and XML錛夈?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">XMLHttpRequest 瀵硅薄濡傛灉瑕佺敤浜?AJAX 鐨勮瘽錛屽叾 open() 鏂規(guī)硶鐨?async 鍙傛暟蹇呴』璁劇疆涓?true錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","ajax_test.asp",<code style="margin: 0px; padding: 0px; border: 0px; font-family: 'Courier New', Courier, monospace; color: #0000dd;">true</code>);</pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">瀵逛簬 web 寮鍙戜漢鍛樻潵璇達(dá)紝鍙戦佸紓姝ヨ姹傛槸涓涓法澶х殑榪涙銆傚緢澶氬湪鏈嶅姟鍣ㄦ墽琛岀殑浠誨姟閮界浉褰撹垂鏃躲侫JAX 鍑虹幇涔嬪墠錛岃繖鍙兘浼?xì)寮曡捣搴旂敤绋嬪簭鎸傝典h垨鍋滄銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">閫氳繃 AJAX錛孞avaScript 鏃犻渶絳夊緟鏈嶅姟鍣ㄧ殑鍝嶅簲錛岃屾槸錛?/p><ul style="margin: 10px 0px 0px 35px; padding: 0px; border: 0px;"><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">鍦ㄧ瓑寰呮湇鍔″櫒鍝嶅簲鏃舵墽琛屽叾浠栬剼鏈?/li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">褰撳搷搴斿氨緇悗瀵瑰搷搴旇繘琛屽鐞?/li></ul></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>Async = true</h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">褰撲嬌鐢?async=true 鏃訛紝璇瘋瀹氬湪鍝嶅簲澶勪簬 onreadystatechange 浜嬩歡涓殑灝辯華鐘舵佹椂鎵ц鐨勫嚱鏁幫細(xì)</p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","test1.txt",true); xmlhttp.send(); </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鎮(zhèn)ㄥ皢鍦ㄧ◢鍚庣殑绔犺妭瀛︿範(fàn)鏇村鏈夊叧 onreadystatechange 鐨勫唴瀹廣?/p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>Async = false</h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傞渶浣跨敤 async=false錛岃灝?open() 鏂規(guī)硶涓殑絎笁涓弬鏁版敼涓?false錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","test1.txt",false);</pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鎴戜滑涓嶆帹鑽愪嬌鐢?async=false錛屼絾鏄浜庝竴浜涘皬鍨嬬殑璇鋒眰錛屼篃鏄彲浠ョ殑銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">璇瘋浣忥紝JavaScript 浼?xì)绛夊埌鏈嶅姟鍣ㄥ搷搴敒q華鎵嶇戶緇墽琛屻傚鏋滄湇鍔″櫒綣佸繖鎴栫紦鎱紝搴旂敤紼嬪簭浼?xì)鎸傝典h垨鍋滄銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><span style="margin: 0px; padding: 0px; border: 0px; font-weight: bold;">娉ㄩ噴錛?/span>褰撴?zhèn)ㄤ娇鐢?async=false 鏃訛紝璇蜂笉瑕佺紪鍐?onreadystatechange 鍑芥暟 - 鎶婁唬鐮佹斁鍒?send() 璇彞鍚庨潰鍗沖彲錛?/p><pre style="margin-top: 10px; margin-bottom: 0px; padding: 10px; border: 1px dotted #778855; font-family: 'Courier New', Courier, monospace; width: 685px; background-color: #f5f5f5;">xmlhttp.open("GET","test1.txt",false); xmlhttp.send(); document.getElementById("myDiv").innerHTML=xmlhttp.responseText; </pre><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;"><a style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">浜茶嚜璇曚竴璇?/a></p></div><div class="ioskaoe" id="bpn" style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; height: 29px; width: 710px; background-color: #ffffff; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal;"><ul style="margin: 0px; padding: 0px; border: 0px; height: 29px; width: 230px; background-image: url(http://www.w3school.com.cn/ui/bg.gif); background-color: transparent; position: relative; background-position: 0px -570px; background-repeat: no-repeat no-repeat;"><li style="margin: 0px; padding: 0px; border: 0px; left: 0px; width: 105px; display: block; height: 29px; list-style: none; position: absolute; top: 0px; overflow: hidden;"></li></ul></div><img src ="http://m.tkk7.com/qileilove/aggbug/412739.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-04-21 14:09 <a href="http://m.tkk7.com/qileilove/articles/412739.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>AJAX - 鍒涘緩 XMLHttpRequest 瀵硅薄http://m.tkk7.com/qileilove/articles/412738.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOMon, 21 Apr 2014 06:07:00 GMThttp://m.tkk7.com/qileilove/articles/412738.htmlhttp://m.tkk7.com/qileilove/comments/412738.htmlhttp://m.tkk7.com/qileilove/articles/412738.html#Feedback0http://m.tkk7.com/qileilove/comments/commentRss/412738.htmlhttp://m.tkk7.com/qileilove/services/trackbacks/412738.html

XMLHttpRequest 鏄?AJAX 鐨勫熀紜銆?/span>

XMLHttpRequest 瀵硅薄

鎵鏈夌幇浠f祻瑙堝櫒鍧囨敮鎸?XMLHttpRequest 瀵硅薄錛圛E5 鍜?IE6 浣跨敤 ActiveXObject錛夈?/p>

XMLHttpRequest 鐢ㄤ簬鍦ㄥ悗鍙頒笌鏈嶅姟鍣ㄤ氦鎹㈡暟鎹傝繖鎰忓懗鐫鍙互鍦ㄤ笉閲嶆柊鍔犺澆鏁翠釜緗戦〉鐨勬儏鍐典笅錛屽緗戦〉鐨勬煇閮ㄥ垎榪涜鏇存柊銆?/p>

鍒涘緩 XMLHttpRequest 瀵硅薄

鎵鏈夌幇浠f祻瑙堝櫒錛圛E7+銆丗irefox銆丆hrome銆丼afari 浠ュ強(qiáng) Opera錛夊潎鍐呭緩 XMLHttpRequest 瀵硅薄銆?/p>

鍒涘緩 XMLHttpRequest 瀵硅薄鐨勮娉曪細(xì)

variable=new XMLHttpRequest();

鑰佺増鏈殑 Internet Explorer 錛圛E5 鍜?IE6錛変嬌鐢?ActiveX 瀵硅薄錛?/h3>
variable=new ActiveXObject("Microsoft.XMLHTTP");

涓轟簡搴斿鎵鏈夌殑鐜頒唬嫻忚鍣紝鍖呮嫭 IE5 鍜?IE6錛岃媯(gè)鏌ユ祻瑙堝櫒鏄惁鏀寔 XMLHttpRequest 瀵硅薄銆傚鏋滄敮鎸侊紝鍒欏垱寤?XMLHttpRequest 瀵硅薄銆傚鏋滀笉鏀寔錛屽垯鍒涘緩 ActiveXObject 錛?/p>

var xmlhttp; if (window.XMLHttpRequest)   {// code for IE7+, Firefox, Chrome, Opera, Safari   xmlhttp=new XMLHttpRequest();   } else   {// code for IE6, IE5   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");   } 

鍦ㄤ笅涓绔犱腑錛屾?zhèn)畣瀛︿範(fàn)鍙戦佹湇鍔″櫒璇鋒眰鐨勭煡璇嗐?/p>



欏哄叾鑷劧EVO 2014-04-21 14:07 鍙戣〃璇勮
]]>
AJAX 綆浠?/title><link>http://m.tkk7.com/qileilove/articles/412731.html</link><dc:creator>欏哄叾鑷劧EVO</dc:creator><author>欏哄叾鑷劧EVO</author><pubDate>Mon, 21 Apr 2014 05:24:00 GMT</pubDate><guid>http://m.tkk7.com/qileilove/articles/412731.html</guid><wfw:comment>http://m.tkk7.com/qileilove/comments/412731.html</wfw:comment><comments>http://m.tkk7.com/qileilove/articles/412731.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/qileilove/comments/commentRss/412731.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/qileilove/services/trackbacks/412731.html</trackback:ping><description><![CDATA[<div class="y6ik8ay" id="intro" style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><p style="margin: 0px; padding: 0px; border: 0px; line-height: 18px;"><span style="margin: 0px; padding: 0px; border: 0px; font-family: 寰蔣闆呴粦; font-size: 14px; font-weight: 800;">AJAX 鏄竴縐嶅湪鏃犻渶閲嶆柊鍔犺澆鏁翠釜緗戦〉鐨勬儏鍐典笅錛岃兘澶熸洿鏂伴儴鍒嗙綉欏電殑鎶鏈?/span></p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>鎮(zhèn)ㄥ簲褰撳叿澶囩殑鍩虹鐭ヨ瘑</h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鍦ㄧ戶緇涔?fàn)涔嬪墠锛屾?zhèn)ㄩ渶瑕佸涓嬮潰鐨勭煡璇嗘湁鍩烘湰鐨勪簡瑙o細(xì)</p><ul style="margin: 10px 0px 0px 35px; padding: 0px; border: 0px;"><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">HTML / XHTML</li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">CSS</li><li style="margin: 3px 0px 0px; padding: 0px; border: 0px;">JavaScript / DOM</li></ul><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">濡傛灉鎮(zhèn)ㄥ笇鏈涢鍏堝涔?fàn)杩欎簺椤圭洰锛岃鍦ㄦ垜浠?a title="W3School 鍦ㄧ嚎鏁欑▼" style="margin: 0px; padding: 0px; border: 0px; color: #900b09; background-color: transparent;">棣栭〉</a>璁塊棶榪欎簺鏁欑▼銆?/p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>浠涔堟槸 AJAX 錛?/h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">AJAX = 寮傛 JavaScript 鍜?XML銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">AJAX 鏄竴縐嶇敤浜庡垱寤哄揩閫熷姩鎬佺綉欏電殑鎶鏈?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">閫氳繃鍦ㄥ悗鍙頒笌鏈嶅姟鍣ㄨ繘琛屽皯閲忔暟鎹氦鎹紝AJAX 鍙互浣跨綉欏靛疄鐜板紓姝ユ洿鏂般傝繖鎰忓懗鐫鍙互鍦ㄤ笉閲嶆柊鍔犺澆鏁翠釜緗戦〉鐨勬儏鍐典笅錛屽緗戦〉鐨勬煇閮ㄥ垎榪涜鏇存柊銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">浼犵粺鐨勭綉欏碉紙涓嶄嬌鐢?AJAX錛夊鏋滈渶瑕佹洿鏂板唴瀹癸紝蹇呴渶閲嶈澆鏁翠釜緗戦〉闈€?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鏈夊緢澶氫嬌鐢?AJAX 鐨勫簲鐢ㄧ▼搴忔渚嬶細(xì)鏂版氮寰崥銆丟oogle 鍦板浘銆佸紑蹇冪綉絳夌瓑銆?/p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>Google Suggest</h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">鍦?2005 騫達(dá)紝Google 閫氳繃鍏?Google Suggest 浣?AJAX 鍙樺緱嫻佽璧鋒潵銆?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">Google Suggest 浣跨敤 AJAX 鍒涢犲嚭鍔ㄦ佹ф瀬寮虹殑 web 鐣岄潰錛氬綋鎮(zhèn)ㄥ湪璋鋒瓕鐨勬悳绱㈡杈撳叆鍏抽敭瀛楁椂錛孞avaScript 浼?xì)鎶姌q欎簺瀛楃鍙戦佸埌鏈嶅姟鍣紝鐒跺悗鏈嶅姟鍣ㄤ細(xì)榪斿洖涓涓悳绱㈠緩璁殑鍒楄〃銆?/p></div><div style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; width: 710px; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal; background-color: #f9f9f9;"><h2>浠婂ぉ灝卞紑濮嬩嬌鐢?AJAX</h2><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">AJAX 鍩轟簬宸叉湁鐨勬爣鍑嗐傝繖浜涙爣鍑嗗凡琚ぇ澶氭暟寮鍙戣呬嬌鐢ㄥ騫淬?/p><p style="margin: 12px 0px 0px; padding: 0px; border: 0px; line-height: 18px;">璇烽槄璇諱笅涓绔狅紝鐪嬬湅 AJAX 鏄浣曞伐浣滅殑錛?/p></div><div class="soau64k" id="bpn" style="margin: 0px 0px 0px 15px; padding-top: 20px; padding-bottom: 20px; border-width: 1px 0px; border-top-style: solid; border-bottom-style: solid; border-top-color: #aaaaaa; border-bottom-color: #aaaaaa; height: 29px; width: 710px; background-color: #ffffff; font-family: Verdana, Arial, 瀹嬩綋; font-size: 11.818181991577148px; line-height: normal;"><ul style="margin: 0px; padding: 0px; border: 0px; height: 29px; width: 230px; background-image: url(http://www.w3school.com.cn/ui/bg.gif); background-color: transparent; position: relative; background-position: 0px -570px; background-repeat: no-repeat no-repeat;"><li style="margin: 0px; padding: 0px; border: 0px; left: 0px; width: 105px; display: block; height: 29px; list-style: none; position: absolute; top: 0px; overflow: hidden;"></li></ul></div><img src ="http://m.tkk7.com/qileilove/aggbug/412731.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/qileilove/" target="_blank">欏哄叾鑷劧EVO</a> 2014-04-21 13:24 <a href="http://m.tkk7.com/qileilove/articles/412731.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>AJAX 瀹炰緥http://m.tkk7.com/qileilove/articles/412733.html欏哄叾鑷劧EVO欏哄叾鑷劧EVOMon, 21 Apr 2014 05:24:00 GMThttp://m.tkk7.com/qileilove/articles/412733.htmlhttp://m.tkk7.com/qileilove/comments/412733.htmlhttp://m.tkk7.com/qileilove/articles/412733.html#Feedback0http://m.tkk7.com/qileilove/comments/commentRss/412733.htmlhttp://m.tkk7.com/qileilove/services/trackbacks/412733.htmlAJAX 瀹炰緥

涓轟簡甯姪鎮(zhèn)ㄧ悊瑙?AJAX 鐨勫伐浣滃師鐞嗭紝鎴戜滑鍒涘緩浜嗕竴涓皬鍨嬬殑 AJAX 搴旂敤紼嬪簭銆?/span>

瀹炰緥

AJAX is not a programming language.

It is just a technique for creating better and more interactive web applications.

AJAX 瀹炰緥瑙i噴

涓婇潰鐨?AJAX 搴旂敤紼嬪簭鍖呭惈涓涓?div 鍜屼竴涓寜閽?/p>

div 閮ㄥ垎鐢ㄤ簬鏄劇ず鏉ヨ嚜鏈嶅姟鍣ㄧ殑淇℃伅銆傚綋鎸夐挳琚偣鍑?yán)L椂錛屽畠璐熻矗璋冪敤鍚嶄負(fù) loadXMLDoc() 鐨勫嚱鏁幫細(xì)

<html> <body>  <div id="myDiv"><h3>Let AJAX change this text</h3></div> <button type="button" onclick="loadXMLDoc()">Change Content</button>  </body> </html> 

鎺ヤ笅鏉ワ紝鍦ㄩ〉闈㈢殑 head 閮ㄥ垎娣誨姞涓涓?<script> 鏍囩銆傝鏍囩涓寘鍚簡榪欎釜 loadXMLDoc() 鍑芥暟錛?/p>

<head> <script type="text/javascript"> function loadXMLDoc() { .... AJAX script goes here ... } </script> </head> 

涓嬮潰鐨勭珷鑺備細(xì)涓烘?zhèn)ㄨ瑙?AJAX 鐨勫伐浣滃師鐞嗐?/p>



欏哄叾鑷劧EVO 2014-04-21 13:24 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 7m凹凸精品分类大全免费| 亚洲成人免费在线观看| 夜夜爽免费888视频| 亚洲色WWW成人永久网址| 国产精品美女午夜爽爽爽免费| 暖暖免费在线中文日本| 好吊色永久免费视频大全| 久久久久亚洲AV成人无码 | 亚洲一级二级三级不卡| 亚洲一区二区三区偷拍女厕 | 成人精品国产亚洲欧洲| 亚洲最大无码中文字幕| 亚洲系列中文字幕| 亚洲人成网站在线播放影院在线 | 国产精品综合专区中文字幕免费播放| 亚洲色少妇熟女11p| 激情五月亚洲色图| 亚洲xxxxxx| 亚洲一区无码中文字幕乱码| 亚洲欧洲校园自拍都市| 亚洲视频中文字幕在线| 亚洲国产天堂久久综合网站| 亚洲成av人片天堂网| 亚洲AV无码一区二区二三区入口 | 亚洲精品国产精品| 亚洲精华国产精华精华液 | 四虎影院在线免费播放| 成年女人免费视频播放体验区| 国产精品九九久久免费视频| 人禽伦免费交视频播放| 一级免费黄色大片| 两性色午夜免费视频| 十八禁视频在线观看免费无码无遮挡骂过 | 亚洲性色AV日韩在线观看| 亚洲熟妇久久精品| 亚洲天然素人无码专区| 久久精品国产亚洲AV未满十八| 久久精品熟女亚洲av麻豆| 羞羞视频免费网站日本| 在线观看片免费人成视频播放| a级毛片高清免费视频就|