trim处理空字符串 $.trim(text) 如下字符会直接trim成'' null undefined \r\n\t Object会trim成[object Object] $.trim( new Object() )