码迷,mamicode.com
首页 > Web开发 > 详细

网页之间传值与获取值

时间:2019-12-12 18:13:26      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:oca   参数   str   list   ati   query   cat   href   之间   

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

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

网页之间传值与获取值

标签:oca   参数   str   list   ati   query   cat   href   之间   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!