jQuery之trim操作
trim处理空字符串
$.trim(text)
如下字符会直接trim成''
null
undefined
\r\n\t
Object会trim成[object Object]
$.trim( new Object() )
trim处理空字符串
$.trim(text)
如下字符会直接trim成''
null
undefined
\r\n\t
Object会trim成[object Object]
$.trim( new Object() )
暂无评论。
评论功能维护中,当前仅展示历史评论。