如何页面加载另外一个页面

如何页面加载另外一个页面, 利用$(‘div’).load(‘地址’),
注意:要在服务器的情况下运行div.html文件
示例
div.html


<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Documenttitle>
head>
<body>
    <div class="frame">
        <span>大学span>
        <div class="iframe">

        div>
    div>
    <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"> script>
    <script> $(".iframe").load('son.html'); script>
body>
html>

son.html


<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Documenttitle>
head>
<body>
  <span>江西span>
body>
html>

你可能感兴趣的:(jquery)