???AJAX???????????????
???????????? ???????[ 2014/8/25 13:50:50 ] ??????????????? ??????? AJAX
????AJAX = Asynchronous JavaScript and XML (????JavaScript??XML)??
????AJAX????????? ?????????????????????????????????£???????????????????????????????????????????顣
????AJAX??????к??????????????????????????????????????????????????????????μ????????????????????????????????????????????????????AJAX?????????????????????SEO?????????
????????AJAX????????????HTML/XHTML??CSS??JavaScript/DOM???????
????AJAX????????????????????????漰??????????????????漰????????????????????(new XMLHttpRequest())??????????(open())??????????(send())??????????(responseText)??
????????????
????IE9+?????????????????new XMLHttpRequest()??????????????IE8???????????new ActiveXObject()???????д?????
???????????????????????′?????м????
1 try {
2 xml = new ActiveXObject("Msxml2.XMLHTTP");
3 } catch(e) {
4 try {
5 xml = new ActiveXObject("Microsoft.XMLHTTP");
6 } catch(e1) {
7 xml = new XMLHttpRequest();
8 }
9 }
??????????IE11??????????IE10?????2?дnew ActiveXObject("Msxml2.XMLHTTP")??????????????????????????????????
????var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
???????????
????xml.open('get'?? 'url'?? true/false);
??????????????????string. ?????????????????get/post?????????????get
??????????????????string. ??????????????
???????????????????boolean. ???????????????true????????????
????????????
????xml.send();
???????????????????????xml.send(str);
????????????
????xml.onreadystatechange = function() {
????if (xml.readyState == 4 && xml.status == 200) {
????alert(xml.responseText);
????}
????}
????status??????????????????200??404??200???????????404???δ?????檔
????readyState??5???????????0??1??2??3??4?????????????????????onreadystatechange??
????readyState??5????????????
????0: ????δ?????
????1: ???????????????
????2: ?????????
????3: ????????
????4: ???????????????????
?????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11