我怎样才能选择210.00
与选择器?选择器jquery后
<tr class="order-total">
<th>Total</th>
<td data-title="Total">
<strong>
<span class="woocommerce-Price-amount amount">
<span class="woocommerce-Price-currencySymbol">$</span>
210.00
</span>
</strong>
</td>
</tr>
我觉得你应该把这个值210.00中的一个元素(跨度例子。然后,选择它会容易得多:) – Barudar
'$('。woocommerce-Price-amount.amount:contains(210.00)')'......是吗? – Jai
例如,你需要在''中放置'210.00',在得到'span'元素后,你可以使用'.text()' – simon