移除字符串两侧的空格,并将非两侧的连续空格替换成一个空格。 Source: clean.js, line 3 Example str.clean(' string js ') // 'string js' Parameters: Name Type Description str String 需要移除空格的字符串 Returns: 已移除空格的字符串 Type String