php:
<?php
header('HTTP/1.1 500 Server Interval Error');
?>
html:
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta charset="utf-8" />
</head>
<body>
<h1></h1>
<button id="bt1">异步请求一个不存在的页面</button>
<script src="js/jquery-1.11.3.js"></script>
<script>
$('#bt1').click(function(){
/*$.get('7-1.php', function(){
console.log('接收到服务器返回的数据:');
console.log(arguments);
})*/
$.get('7-2.php', function(){
console.log('接收到服务器返回的数据:');
console.log(arguments);
})
});
</script>
</body>
</html>