//字符串判空 function isEmpty(obj) { return (obj === "undefined" || obj === null || obj === ""); }
//获取浏览器地址的参数 function getQueryString(name) { let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); let r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }