87,993
社区成员
发帖
与我相关
我的任务
分享 function SendAjax(callback) {
var xmlhttp;
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function Ajax() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
callback(xmlhttp.responseText)
}
}
xmlhttp.open("GET", "select.php", true);
xmlhttp.send();
}
SendAjax(function (d) {
alert(d)
})