Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.after()当我单击一个按钮时,我正在使用向我的页面添加一些 html。但是当我添加 html 时,我想跳过第一个位置并转到第二个位置。
.after()
$(this).after(newtemplate);
基本上我想要.after()+1
我相信您正在寻找的是append(newtemplate).
append(newtemplate)
http://api.jquery.com/append/