正文javascript string去除两边空格IP云V管理员/2022-11-30/2 阅读 11/30提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 function trim(){ return this.replace(/(^\s*)|(\s*$)/g,""); g整个字符串 }