JS替换所有空格及转换成大写
2020-12-16 本文已影响0人
bryan_liu
const handleSummaryConditions = function(val) {
let str = '';
if(val) {
str = val.replace(/\s+/g,'').toUpperCase();
}
return str
}
const handleSummaryConditions = function(val) {
let str = '';
if(val) {
str = val.replace(/\s+/g,'').toUpperCase();
}
return str
}