???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