url中参数获取
function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }
标题:url中参数获取
作者:hugh0524
地址:https://blog.uproject.cn/articles/2017/05/20/1495281865673.html
0 0