<div >
 <a href="http://www.cnblogs.com">Link 1</a>
 <a href="http://www.cnblogs.com">Link 2</a>
</div>
生成如下内容:

<div >
 Link1
 Link2
</div>
方法一:使用unwrap方法
$("#test a").contents().unwrap();


方法二:使用text方法
$('#some_div').text($('#some_div').text());

相关文章:

  • 2022-01-10
  • 2021-10-28
  • 2021-09-11
  • 2021-07-12
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
相关资源
相似解决方案