按钮点击,要向另一个页面传递参数,同时跳转到该页面。用JQuery实现 jquery 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $("btntest").click(function(){ window.location.href = "newpage.aspx?p1=p1val&p2=p2val";}); $("#按钮ID").click(function(){ window.location='test.aspx?p=aaaa';});就是这么传的,如果没获取到,可能是你获取的方式错了,发出代码来 $("#ID").on("click",function(){ location.href="xxxx.aspx?paraname=paravalue";}) var editorstudent = $("#btn_editor").click(function (aa, bb) { window.location.href = "newpage.aspx?homebedid=aa,username=bb", function (data) { StudentNumber(); } });获取不到 $("#btn_editor").click(function (aa, bb) { function (data) { StudentNumber(); } , window.location.href = "newpage.aspx?homebedid=aa&username=bb";}); 不要用逗号分隔 用&& $("#btn_editor").click(function (aa, bb) { window.location.href = "newpage.aspx?homebedid=“+aa+”&username=“+bb; }); 你传的是aa代表的值,不是aa.....手写的,不行的话你看看引号打错了没有。 setInterval问题 100分求一个在线html编辑器。内容见内,多谢!(WebHtmlEditor) 150分求一个复杂的sql语句。 有谁知道C#如何将.pdf文档里面的内容直接读到页面中啊? 用户控件由一个个LinkButton组成,而且有子菜单,在页面上时占的空间太大怎么办? 分页问题,求助 30分菜鸟问题:有关数据库表设计 问问前辈们MCPD作用大吗? 一个外来控件的属性问题? 请(位)大侠___有个验证datagrid 文本框的问题(是否为空,是否为日期型,)在线!在线! cssl 有没有做过3D项目的高手
$("btntest").click(function(){
window.location.href = "newpage.aspx?p1=p1val&p2=p2val";
});
window.location='test.aspx?p=aaaa';
});就是这么传的,如果没获取到,可能是你获取的方式错了,发出代码来
location.href="xxxx.aspx?paraname=paravalue";
})
window.location.href = "newpage.aspx?homebedid=aa,username=bb",
function (data) { StudentNumber(); }
});
获取不到
function (data) { StudentNumber(); } ,
window.location.href = "newpage.aspx?homebedid=aa&username=bb";
});
window.location.href = "newpage.aspx?homebedid=“+aa+”&username=“+bb; });
你传的是aa代表的值,不是aa.....手写的,不行的话你看看引号打错了没有。