HTML
<div>
<span class="openParen bm0">(</span>
<span class="closeParen bm0">)</span>
<span class="openParen bm3">(</span>
<span class="openCurly bm1">{</span>
<span class="openParen bm2">(</span>
<span class="closeParen bm2">)</span>
<span class="closeParen bm3">)</span>
<span class="closeCurly bm1">}</span>
</div>
更新
我希望<span class="new"></span>
使用 bm 类名成对包装它,我只想用 Paren 包装它们的类名
未正确包装
<div>
<div>if<span class="openParen bm1">(</span>b<3 && b>0<span class="closeParen bm1">)</span>{</div>
</div>