str.replace("'",""),这个是全部替换字符中的字符的,跟js中的不一样
用replace方法,str.replace("'","")把str中的单引号替换为空格
String类中的Remove方法应该就可以吧。
str.replace("'","")
str.replace替换