所有数据均在
window.location.search
您必须解析字符串,例如。
function get(name){ if(name=(new RegExp('[?&]'+enpreURIComponent(name)+'=([^&]*)')).exec(location.search)) return depreURIComponent(name[1]);}只需以GET变量名作为参数调用该函数,例如。
get('foo');如果变量没有值或不存在,则此函数将返回变量value或undefined



