<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>load demo</title>
<style>
body {
font-size: 12px;
font-family: Arial;
}
</style>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<div id="success"></div>
<script>
$( "#success" ).load( "index.html", function( response, status, xhr ) {
alert(response);
alert(status);
});
</script>
</body>
</html>
也可以是index.php文件。