【发布时间】:2011-07-05 11:31:35
【问题描述】:
我有一个类似的网页:
<html>
<head>
. . .
</head>
<body>
<div id="wrapper">
<p>Lots of content here!</p>
</div>
</body>
</html>
我也有一个像这样的外部文件:
<div id="more-stuff"><p>Even more content!</p></div>
我想要一个这样的网页:
<html>
<head>
. . .
</head>
<body>
<div id="wrapper">
<p>Lots of content here!</p>
<div id="more-stuff"><p>Even more content!</p></div>
</div>
</body>
</html>
使用 jQuery。我的猜测是这样的:
$(document).ready(function(){
$('#wrapper').append.load('/external.htm');
});
但它不起作用,我似乎找不到好的解决方案。
【问题讨论】: