我在使用ajax实现服务器异步请求时,出现以下报错: Component returned failure code: 0x805e0006 [nsIXMLHttpRequest.open] xmlhttp.open("GET","http://www.w3school.com.cn/ajax/demo_get.asp",true); 原来是:ajax不允许跨服务器访问!使用ajax 只能访问 本服务器上的数据!