function getURLParam(name) {
return decodeURIComponent((new RegExp(‘[?|&]‘ + name + ‘=‘ + ‘([^&;]+?)(&|#|;|$)‘, "ig").exec(location.search) || [, ""])[1].replace(/\+/g, ‘%20‘)) || null;
}
js获取?后面具体参数的值
原文:http://www.cnblogs.com/raoyunxiao/p/4761690.html