我想在元素中找到一串文本,并围绕它包裹一些span标签.例如:
从h2到h2
h2
我试过了:
<h2>We have cows on our farm</h2>
但这只包含整个包含h2标签.
string jquery text
jquery ×1
string ×1
text ×1