<div class="myClass1">
<span>tesutokana</span>
</div>
<div class="myClass2">
<span>tesutoroma</span>
</div>
<div class="myClass1">
<span>-</span>
</div>
<div class="myClass2">
<span>-</span>
</div>
<div class="myClass1">
<span>-</span>
</div>
<div class="myClass2">
<span>-</span>
</div>
我想删除所有仅<span>-</span>
来自类的 divmyClass1
和myClass2
. 尝试过,.each()
但我似乎无法掌握它,主要是我应该调用的函数的参数是什么。有什么帮助吗?