使用jQuery删除文本 [英] Remove text with jQuery
本文介绍了使用jQuery删除文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以使用jQuery删除未包装在任何标签中的文本
Is there a way to remove text that is not wrapped in any tag using jQuery
<p>This is some text</p>
This is "unwrapped" text //to be removed
<span>some more text</span>
谢谢您的帮助
推荐答案
使用 查看全文