AJAX? XMLHttpRequest ??? ?????.
AJAX? XMLHttpRequest ??? ?????:
??? ?? ?? ????? XMLHttpRequest ??? ?????.
? ??? ???? ??????? ??? ???? ??? ? ???? ?? ???? ?? ??? ??? ? ???? ?????? ????? ? ????.
?? ?? ??: IE5? IE6? ActiveXObject? ?????.
XMLHttpRequest ?? ??? IE5 ? IE6? ?????:
(1). XMLHttpRequest ?? ??? ??? ????:
var xmlhttp=new XMLHttpRequest();
(2) IE5 ? IE6? ?????(ActiveX ?? ??):
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
??? ??? ??? ????. ??? ????:
var xmlhttp; //IE7和IE7以上或者其他標(biāo)準(zhǔn)瀏覽器 if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } //IE5和IE6瀏覽器 else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }