我试图弄清楚如何使用 jQuery 删除此处的破折号和冒号。有办法吗?到目前为止,我已经尝试过 .empty
和 .remove
但不幸的是我无法让它工作。
<p class="meta">
<strong>Author Name</strong>
– <-- remove this
<time>June 7, 2013</time>
: <-- remove this
</p>
最佳答案
关于jquery - 从 dom 中删除 html 元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24691071/