摘要: String.prototype.getParameter = function (key) { var re = new RegExp(key + '=([^&]*)(?:&)?'); return this.match(re) && this.match(re)[1];};测试代码:输出:... 阅读全文
posted @ 2012-11-27 16:43 笑的自然 阅读(1758) 评论(0) 推荐(0)