ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
createElement添加内容: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script src="https://creative.chat/resources/js/jquery-3.5.1.js"></script> </head> <body> <button class="add">添加</button> <div class="test1">111</div> <script> $('.add').click(function() { var div=document.createElement('div'); div.id = 'addItem'; div.className = 'addItem'; div.innerHTML= '111'; div.style.color = 'blue'; $(".test1").append(div); }); </script> </body> </html> ```