开发者

How to replace an DOM element in place with jQuery?

Something like follows:

$target.r开发者_如何学编程eplace('<div>test</div>')


$(target).replaceWith('<div>test</div>'); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜