//获取url中ID的值
function getParamByName(name, url) { var match = RegExp('[?&]' + name + '=([^&]*)').exec(url); return match && decodeURIComponent(match[1].replace(/\+/g, ' ').replace('#', '')); }
var ID = getParamByName("memberid", window.location);
//获取url中ID的值
function getParamByName(name, url) { var match = RegExp('[?&]' + name + '=([^&]*)').exec(url); return match && decodeURIComponent(match[1].replace(/\+/g, ' ').replace('#', '')); }
var ID = getParamByName("memberid", window.location);
转载于:https://www.cnblogs.com/pandaer/p/5627904.html