From 7cddbf1d240380978bb51988e092579eff4df0e4 Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <913652501@qq.com> Date: Thu, 23 Apr 2020 16:03:06 +0800 Subject: [PATCH] 修改 拦截器 --- kidgrow-web/kidgrow-web-manager/src/main/resources/static/assets/js/common.js | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/assets/js/common.js b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/assets/js/common.js index 0cd2eae..f8e6a4f 100644 --- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/assets/js/common.js +++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/assets/js/common.js @@ -202,7 +202,7 @@ * @returns {} */ isEmpty:function(str){ - if(str != '' && str != undefined && str != null && str.length > 0){ + if(str != '' && str != undefined && str != null){ return false; }else{ return true; @@ -259,3 +259,17 @@ return true; } }; +//从当前页面的url地址中获取参数数据 +function getRequest() { + debugger + var url = location.search; //获取url中"?"符后的字串 + var theRequest = new Object(); + if(url.indexOf("?") != -1) { + var str = url.substr(1); + strs = str.split("&"); + for(var i = 0; i < strs.length; i++) { + theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); + } + } + return theRequest; +} -- Gitblit v1.8.0