? 本文檔使用 PHP中文網(wǎng)手冊(cè) 發(fā)布
去掉字符串起始和結(jié)尾的空格。
需要處理的字符串
$.trim(" hello, how are you? ");
"hello, how are you?"