1

我将值 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>
4

1 回答 1

0
 assert(abc.replaceAll(",","").equals(def.replaceAll(",","")));
于 2013-07-25T06:56:48.667 回答