开发者

How to replace an DOM element in place with jQuery?

开发者 https://www.devze.com 2022-12-13 09:43 出处:网络
Something like follows: $target.r开发者_如何学编程eplace(\'<div>test</div>\') $(target).replaceWith(\'<div>test</div>\');

Something like follows:

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


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

精彩评论

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