国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

AJAX ??

AJAX? ?? ????? ?? ???? ??? ????? ??? ????? ? ?? ?????.

1. ajax? ?????:
(1) ajax? ??? JavaScript ? XML?? ?? ?? ????? ??? JavaScript ? XML???.
(2).ajax? ???? ?? ?? ?? ?? ??? ???? ??? ???? ?? ? ???? ??? ????? ??? ? ????.
???? ???? ????? ???? ??????? ?? ???? ?? ??? ???. Ajax? ???? ?? ?????? ?? ?? ? ????.

AJAX ?? ??

ajax.gif

2. AJAX? ?? ??? ??? ???? ???.
ajax? ??? ??? ???? ?? ??? ?? ? ??? ???? ???.
(1).XMLHttpRequest ??(??? ??? ??) ??? ??????).
(2).JavaScript/DOM(?? ??/????).
(3).CSS(??? ??? ??).
(4).XML(??? ?? ??).
3. ?? ?:
???? ajax? ?? ?? ??? ??????. ??? ?? ? ??? ?? ? ?? ??? ?? ????. ?? ??.txt ??? ???? ??? ???? ??? ??? ? ????.

???? ??
||
<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://m.miracleart.cn/" /> <title>php中文網(wǎng)</title> <script> function loadXMLDoc(){ var xmlhttp; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4 && xmlhttp.status==200){ document.getElementById("show").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","demo/ajax/txt/demo.txt",true); xmlhttp.send(); } window.onload=function(){ var obt=document.getElementById("bt"); obt.onclick=function(){ loadXMLDoc(); } } </script> </head> <body> <div id="show"><h2>原來(lái)的內(nèi)容</h2></div> <button type="button" id="bt">查看效果</button> </body> </html>