法一:
在每个p元素后插入内容:
$("button").click(function(){
$("p").after("<p>Hello world!</p>");
});
法二:
$("p").after(function(n){
return "<p>The p element above has index " + n + "</p>";
after中函数必须返回一个html字符串。