标签:
//获取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);
标签:
原文地址:http://www.cnblogs.com/pandaer/p/5627904.html