src/main/webapp/static/js/common.js
@@ -56,6 +56,14 @@ }); } // 清除表单 function clearFormVal(el) { $(':input', el) .val('') .removeAttr('checked') .removeAttr('selected'); } // 权限 function limit(child){ if (child == null){ @@ -200,4 +208,16 @@ ] var popupRight; var popupRight; function RequestParameter() { var url = window.location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); var strs = str.split("&"); for (var i = 0; i < strs.length; i++) { theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]); } } }