XMLHttpRequest 对象 XMLHttpRequest 对象用于在后台与服务器交换数据。 特点: 在不重新加载页面的情况下更新网页 在页面已加载后从服务器请求数据 在页面已加载后从服务器接收数据 在后台向服务器发送数据 创建 XMLHttpRequest 对象: xmlhttp=new XMLHttpRequest(); 解析 XML 文档: if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }