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
}
本文标题:JS替换所有空格及转换成大写
本文链接:https://www.haomeiwen.com/subject/tgongktx.html
网友评论