搜索文档
trim(str, type?): string
str
type?
string
清除空格
undefined
type
1
2
3
4
处理后的字符串
Example
trim(' 123 '); // => '123'