$.trim(str)的作用是去掉字符串首尾空格
$.trim() 函数将在 jQuery 3.5 及以上版本废弃,可以使用 JavaScript 原生的 String.prototype.trim 代替