标签:ext request 对象 == set bsp xhr http pos
//创建xhr对象
var xhr = new XMLHttpRequest();
//异步接受响应
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
//实际操作
// alert(xhr.responseText);
$("#Container").html(xhr.responseText);
}
}
}
//发送请求
xhr.open(‘post‘, ‘/Role/TeaManagePageView‘, true);
xhr.send({ Page: 1 });
标签:ext request 对象 == set bsp xhr http pos
原文地址:https://www.cnblogs.com/-alvin/p/9876816.html