我将值1234存储在变量abc中,值1,234存储在变量def中。我想用replace函数来证明a = b
<tr>
<td>storeText</td>
<td>//div[@id='messages-div']/span[22]</td>
<td>abc</td>
</tr>
<tr>
<td>storeText</td>
<td>//table[@id='keys']/tbody/tr[22]</td>
<td>def</td>
</tr>
答案 0 :(得分:0)
assert(abc.replaceAll(",","").equals(def.replaceAll(",","")));