字符串中去空格

str.replace()

str.replaceAll(" ","")//将所有空格替换为空即删除

猜你喜欢

转载自blog.csdn.net/benguniang/article/details/79438228