<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="keywords" content="白菜编辑部">
<title>白菜编辑部</title>
<style type="text/css">
</style>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$ (function ()
{
$ ('button').click (function ()
{
$('body').append('<div>11</div>');
});
})
</script>
</head>
<body>
<button>添加div</button>
</body>
</html>
温馨提示:内容为网友见解,仅供参考