摘要:
在项目中使用jquery库 经常会用到trim方法 ,用来去除空格在firefox 下可以运行 ,但在IE下却抱错,后来一检查主要是写法不对。语法:jQuery.trim( str ) The $.trim() function removes all newlines, spaces (including non-breaking spaces), and tabs from the beginning and end of the supplied string. If these whitespace characters occur in the middle of the strin 阅读全文