最低级的get而已,返回文本,有兴趣的自己去stackoverflow了解详细的。

function ajax(){xhReq=new XMLHttpRequest();xhReq.open("GET",document.URL+"&a=update",false);xhReq.send(null);return xhReq.responseText}

相关链接:http://stackoverflow.com/questions/8567114/how-to-make-an-ajax-call-without-jquery
http://stackoverflow.com/questions/14747230/how-bad-is-it-to-do-ajax-without-jquery

Related Posts: JavaScript-AJAX函数 :