用Ajax读取xml文件的简单例子 到此就可以就发送请求读取服务器端的XML数据了,最后要做的就是处理数据了。 关于XMLHttpRequest对象,请参考About XMLHttpRequest Object一文。 看例子: //AjaxDemo.html Asynchronous JavaScript And XML //data.xml Welcome to the world of AJAX(Asynchronous JavaScript And XML)!