jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
$.trim(str) |
$.trim(str)
删除字符串两端的空白字符。 返回值:String 参数:
示例: $.trim(" hello, how are you? "); 结果: "hello, how are you?" Remove the whitespace from the beginning and end of a string. Return value: String
Example: $.trim(" hello, how are you? ");Result: "hello, how are you?" |