<!DOCTYPE html>
<html> <head>
<meta charset="UTF-8">
<title></title>
</head> <body>
<script src="./jquery.min.js"></script>
<script>
var ajax6 = $.ajax({
url: './res1.php',
type: "post",
success: function(paramResponse) {
//console.log(paramResponse);
alert(paramResponse);
}
}); var ajax7 = $.ajax({
url: './res2.php',
type: "post",
success: function(paramResponse) {
alert(paramResponse);
}
}); $.when(ajax6, ajax7).done(function() {
//所做操作
alert("sss");
});
</script>
</body> </html>
|