Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将值 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>
assert(abc.replaceAll(",","").equals(def.replaceAll(",","")));