编辑下面的代码:【加编码】
<html> <head> <script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $("body").append($("p:first").clone(true)); }); $("p").click(function(){ $(this).animate({fontSize:"+=1px"}); }); }); </script> </head> <body> <p>Click this paragraph to increase text size.</p> <p>This is another paragraph.</p> <button>Copy the first p element (including event handlers), and append to body element</button> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂