JSLite - 字符串处理如有疑问欢迎到这些地方交流,欢迎加入JSLite.io组织团伙共同开发!$.trim去掉字符串起始和结尾的空格。$.trim(" hello, how are you? ");//⇒ "hello, how are you?"trim同上,去掉字符串起始和结尾的空格。" hello, how are you? ".trim()//⇒ "hello, how are you?"