trim函数

来源:互联网 发布:全球网络电视机顶盒 编辑:程序博客网 时间:2024/05/29 18:36

1. String.trim()

  trim()是去掉首尾空格

  2.str.replace(" ", ""); 去掉所有空格,包括首尾、中间

原创粉丝点击