去除input输入框前后的空格

this.formValidate.title = this.formValidate.title.replace(/(^s*)|(s*$)/g, "");
原文地址:https://www.cnblogs.com/boonook/p/9303055.html