ajax小问题

2025-02-27 02:40:21
推荐回答(2个)
回答1:

function chk(){
var param1 = document.getElementById("控件ID");
}
if (http_request.readyState == 4) {
if (http_request.status == 200) {
alert(http_request.responseText);
} else {
alert('您请求的页面发现错误');
}
}

回答2:

var callbackHandler = chk(obj);
xmlHttp.onreadystatechange = callbackHandler;