From 795839430a956d6a210e7b11bb906b45e3d53dd8 Mon Sep 17 00:00:00 2001 From: Hao Liu Date: Fri, 10 Apr 2015 15:10:17 +0800 Subject: [PATCH] queryString bug --- public/common/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/common/js/util.js b/public/common/js/util.js index 11bbcb9..b6105dc 100644 --- a/public/common/js/util.js +++ b/public/common/js/util.js @@ -51,7 +51,7 @@ var parseId = function(url) { function getURLParameter(key){ var search = location.search; - var reg = new RegExp("(^|&)" + parm + "=([^&]*)(&|$)"); + var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)"); var r = search.substr(search.indexOf("\?") + 1).match(reg); if (r != null) return unescape(r[2]); return null;