JQ 复制节点
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("#ul2 li").click(function () { $(this).clone().appendTo("#ul1"); //clone(true)参数true的含义是复制元素的同时复制元素所绑定的事件 }); }); </script> </head> <body> <ul id="ul2"> <li>苹果</li> <li>香蕉</li> <li>柿子</li> <li>芭乐</li> <li>西瓜</li> </ul> <hr /> <ul id="ul1"> </ul> </body> </html>