This commit is contained in:
2023-10-24 14:19:47 +08:00
parent ea37eeb9e7
commit f23fd6b01c
7 changed files with 184 additions and 97 deletions

View File

@@ -92,4 +92,13 @@ export function clearNoNum(obj) {
}
}
return obj.value;
}
/**
* 过滤字符串空格
* @param {*} str
* @returns
*/
export function removeSpaces(str) {
return str.replace(/\s+/g, '');
}