﹤首页 > 编程技术 > js
发布时间:2015-12-28 01:11
去掉链接
$( "a" ).contents().unwrap();
当然也可以去掉其他标签
比如
$( "p" ).contents().unwrap();
$( "span" ).contents().unwrap();