摘要: 1. trim功能(清除字符串两端空格) String.prototype.trim = function() { return this.replace(/(^\s+)|(\s+$)/g, ''); };' abc '.trim();// 输出 "abc" 2. 提取浏览器中url的参数名和参数值 阅读全文
posted @ 2018-02-26 18:53 chen斌 阅读(337) 评论(0) 推荐(1) 编辑