摘要: 在项目中使用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 阅读全文
posted @ 2012-09-05 15:40 justincai 阅读(604) 评论(0) 推荐(0) 编辑