Something like follows: $target.r开发者_如何学编程eplace('<div>test</div>') $(target).replaceWith('<div>test</div>');
精彩评论