From f215a22829d7301535af73e02f91a9ad718e1b22 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 17 十一月 2020 14:28:03 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/common.js | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js index 53a1d93..a2f6af8 100644 --- a/src/main/webapp/static/js/common.js +++ b/src/main/webapp/static/js/common.js @@ -157,3 +157,15 @@ return http }) : "object" == typeof module && module.exports ? module.exports = http : n.http = http }(this); + +/** + * 鑾峰彇url閿�煎 + */ +function getUrlVal(key) { + var reg = new RegExp('(^|&)' + key + '=([^&]*)(&|$)', 'i'); + var r = window.location.search.substr(1).match(reg); + if (r != null) { + return unescape(r[2]); + } + return null; +} \ No newline at end of file -- Gitblit v1.9.1