0

实际上我想在 id 或 class 之后插入一些 html 代码。这是我的代码:

$$(".validation-advice").each( function (val,i) {
            x = val.innerHTML;
            val.remove();
});

在 jQuery 中会是这样$( x ).insertAfter( ".myclass" );,但我不知道原型中的 this 等价物是什么。有人可以帮我弄这个吗 ?

4

1 回答 1

1

这是解决方案:$('myid').insert({after: x});

于 2014-08-06T07:04:13.943 回答