日期:2014-05-16 浏览次数:20775 次
var request; if (window.XMLHttpRequest) { request = new XMLHttpRequest(); } else if (window.ActiveXObject) { request = new ActiveXObject("Microsoft.XMLHTTP"); } else { alert("当前浏览器不支持AJAX"); } //初始化对象 var url = "CreateCookiePage.aspx"; request.open("GET", url, false); request.send(null); alert(request.responseText);