朋友你好我得到一个字符串更换特定的符号
[1-Sept-2012 13:20 1-Oct-2012 13:20 India , 1-Sept-2012 17:42 28-Sept-2012 17:42 India ]
我想实现这个代码,但它不工作
string.replace(",", "$");
string.replace(" ", "@");
预期输出: -
[1-Sept-2012 13:[email protected] 13:[email protected]@$1-Sept-2012 17:[email protected] 17:42 [email protected]$]
请帮助我一样。 感谢