案例:jQuery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript" src="/js/jquery.js"></script>
4
<script type="text/javascript">
5
$(document).ready(function(){
6
  $("button").click(function(){
7
    $("body").append($("p").clone());
8
  });
9
});
10
</script>
11
</head>
12
<body>
13
<p>This is a paragraph.</p>
14
<button>复制每个 p 元素,然后追加到 body 元素</button>
15
</body>
16
</html>
17