您的位置: 首页 > IT文章 > js 去除字符串所有空格 js 去除字符串所有空格 分类: IT文章 • 2025-01-11 14:19:43 function trim(str){ return str.replace(/s|xA0/g,""); }