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; }