function trim(str) {
if (str & typeof str === "string") {
return str.replace(/(^s*)(s*)$/g,");}
}
}
清除字符串前后的空格
最新推荐文章于 2024-07-24 11:09:48 发布
function trim(str) {
if (str & typeof str === "string") {
return str.replace(/(^s*)(s*)$/g,");}
}
}