时间:2021-07-01 10:21:17 帮助过:34人阅读
$.ajax({
type: "get",
url: "./test.php",
beforeSend: function(XMLHttpRequest){
console.log("start Send ");
},
success: function(data, textStatus){
console.log("Success!");
},
complete: function(XMLHttpRequest, textStatus){
console.log("complete");
},
error: function(){
alert("Error");
}
});
ob_start();
echo "First team";
ob_flush();
flush();
sleep(3);
echo "Follower";
ob_end_clean();