网页之间传值与获取值

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

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

posted @ 2019-12-12 17:47  putaopi  阅读(181)  评论(0编辑  收藏  举报