function trim(str) {
if (str & typeof str === "string") {
return str.replace(/(^s*)(s*)$/g,");}
}
}
清除字符串前后的空格
最新推荐文章于 2025-11-26 17:11:00 发布
function trim(str) {
if (str & typeof str === "string") {
return str.replace(/(^s*)(s*)$/g,");}
}
}
1492
907
254

被折叠的 条评论
为什么被折叠?