优秀诺言

文章
6
资源
0
加入时间
3年1月10天

VUE 项目去除 input 框值 所有空格

去除空格的方法str.trim(); //去掉首尾空格str.replace(" ",""); //去除所有空格,包括首尾、中间str.replaceAll(" ", ""); //去掉所有空格,包括首尾、中间str.replaceAll(" +",""); //去掉所有空格,包括首尾、中间str.replaceAll("\\s*", "&quo