网页之间传值与获取值

a.html页面:
function sq(a){
    window.location.href = "./list.html?rid=" + a;
}
sq(2);

b.html页面
var rid = getQueryString("rid");
//这样b页面就接收到a页面传过来的参数的值了,只是jq的方法,别忘记了使用之前引入jq

原文地址:https://www.cnblogs.com/putaopi/p/12030673.html