实际上我想在 id 或 class 之后插入一些 html 代码。这是我的代码:
$$(".validation-advice").each( function (val,i) {
x = val.innerHTML;
val.remove();
});
在 jQuery 中会是这样$( x ).insertAfter( ".myclass" );
,但我不知道原型中的 this 等价物是什么。有人可以帮我弄这个吗 ?
实际上我想在 id 或 class 之后插入一些 html 代码。这是我的代码:
$$(".validation-advice").each( function (val,i) {
x = val.innerHTML;
val.remove();
});
在 jQuery 中会是这样$( x ).insertAfter( ".myclass" );
,但我不知道原型中的 this 等价物是什么。有人可以帮我弄这个吗 ?