获取URL中的参数值
//获取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);