asp.net ajax已将底层内容封装
实现起来远比自写xmlhttp来的方便,至少浏览器兼容方面要强得很多
下面以一个www.asp.net的示例说明一下利用microsoft ajax library来简单异步获取xml文档的方法













































<button id="Button3"
onclick="GetXml()">Xml</button>
<div id="ResultId" style="background-color:Aqua;"></div>
onclick="GetXml()">Xml</button>
<div id="ResultId" style="background-color:Aqua;"></div>