在js的函数中用jquery的trim()方法去掉search前后的空格

search = $.trim(search);
原文地址:https://www.cnblogs.com/whlhaikuotiankong/p/1987759.html