<!DOCTY
PE ht
ML P
ubLIC "-//W3C//DTD XHTML 1.0 Trans
ITional//EN" "http://www.w3.
org/TR/xhtml1/DTD/xhtml1
-transitional.dtd">
<html
XMlns="http://www.w3.org/1999/xhtml">
<head>
<
;meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>load方法应用</title>
<script type="text/javascript" src="js/
jquery-1.8.2.min.js"></script>
<style type="text/css">
#divfr
ame{ border:1px solid #999; width:500px; m
argin:0 auto;}
.loadTitle{ background:#CCC; h
eight:30px;}
</style>
<script type="text/javascript">
$(function(){
$("#
BTn").click(function(){
//加载整个页面
//$("#ajaxTip").load("inclue_a.html");
//加载页面中的某一元素
$("#ajaxTip").load("inclue_a.html #userinfo");
})
})
</script>
</head>
<body>
<div id="divframe">
<div class="loadTitle">
<input type="button" value="获取数据" id="btn"/>
</div>
<div id="ajaxTip">
</div>
</div>
</body>
</html>