function getvl(name) {var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " "));return "";};
本文共 232 字,大约阅读时间需要 1 分钟。
function getvl(name) {var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " "));return "";};
转载于:https://www.cnblogs.com/mahatmasmile/p/3598888.html