clone(boolean):克隆
true:把相应的事件一并克隆
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>06_复制节点.html</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="./js/jquery-1.8.3.js"></script> <script type="text/javascript"> $(document).ready(function(){ //点击保存 复制此按钮 将其插入到p元素之后 var $save=$("#save"); $save.click(function(){ var $n=$(this).clone(true); $("p").after($n); }); }); </script> </head> <body> <button id="save">保存</button><br> <p>段落</p> </body> <script type="text/javascript"> </script> </html>