AJAX与服务器交互代码 functioncreateXMLHttpRequest(){if(window.ActiveXObject)xmlHttp=newActiveXObject("Microsoft.XMLHTTP");elseif(window.XMLHttpRequest)xmlHttp=newXMLHttpRe