日期:2014-05-16 浏览次数:20706 次
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
<body>
<div class="statusBox">
<ul class="mod">
<li class="first"></li>
</ul>
</div>
</body>
</html>
$.ajax({
url: "b.html",
success: function(data){
alert(data);
}
});
"<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\" />\n</head>\n<body>\n\t<div class=\"statusBox\">\n\t\t\t\t<ul class=\"mod\">\n\t\t\t\t\t<li class=\"first\">\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t</div>\n</body>\n</html>"
$('.statusBox').load('b.html .statusBox ul');