jquery html标签替换

来源:互联网 发布:淘宝客小猪优惠券 编辑:程序博客网 时间:2024/05/18 22:14

replaceWith方法

$('b').each(function(){     $(this).replaceWith('<strong>'+$(this).html()+'</strong>');    });