摘要: >str.trim(); //去掉首尾空格 >str.replace(" ",""); //去除所有空格,包括首尾、中间 >str.replaceAll(" ", ""); //去掉所有空格,包括首尾、中间 >str.replaceAll(" +",""); //去掉所有空格,包括首尾、中间 >st 阅读全文
posted @ 2021-02-04 18:04 FlowLiver 阅读(429) 评论(0) 推荐(0)