字符串去除多余的空格function trimExtraSpaces(str) {
return str.trim().replace(/\s+/g, " ");
}
console.log(trimExtraSp
2025-03-28