Vue.prototype.trim = function (str) { //删除左右两端的空格
return str.replace(/(^\s*)|(\s*$)/g, "");
}
转载于:https://www.cnblogs.com/naxiaoming/p/9054716.html
Vue.prototype.trim = function (str) { //删除左右两端的空格
return str.replace(/(^\s*)|(\s*$)/g, "");
}
转载于:https://www.cnblogs.com/naxiaoming/p/9054716.html