摘要: $.trim()是jQuery提供的函数,用于去掉字符串首尾的空白字符。 "abc 123 def".replace(/\s/g, "") 去除所有的空格 阅读全文
posted @ 2017-07-18 17:31 wdmiye 阅读(158) 评论(0) 推荐(0) 编辑