代码如下:
<html>
<body>
<button onclick="addDiv()">添加</button>
<div class="container">
</div>
</body>
</html>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
var addDiv = function(){
var $div = $('.container');
$div.append('<div>添加</div>');
}
</script>