扫码一下
查看教程更方便
xmlhttprequest 对象用于在后台与服务器交换数据。
xmlhttprequest 对象是开发者的梦想,因为您能够:
如需学习更多关于 xmlhttprequest 对象的知识,请学习我们的 xml dom 教程。
所有现代浏览器(ie7 、firefox、chrome、safari 和 opera)都有内建的 xmlhttprequest 对象。
创建 xmlhttprequest 对象的语法:
xmlhttp=new xmlhttprequest();
旧版本的internet explorer(ie5和ie6)中使用 activex 对象:
xmlhttp=new activexobject("microsoft.xmlhttp");
在下一章中,我们将使用 xmlhttprequest 对象从服务器取回 xml 信息。