以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 微信内置浏览器跳转传递值 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=148160) |
-- 作者:qwz405 -- 发布时间:2020/4/1 11:06:00 -- 微信内置浏览器跳转传递值 老师,您好。js代码,如何将 PrimaryKey 传递到下一页? location="aa.htm?key=" & PrimaryKey & "&v="+Math.random();
[此贴子已经被作者于2020/4/1 11:07:34编辑过]
|
-- 作者:有点蓝 -- 发布时间:2020/4/1 11:12:00 -- 上面的方法就是啊,有什么问题? |
-- 作者:qwz405 -- 发布时间:2020/4/1 11:25:00 -- 用上面的代码,点击没反应(停留在原地) 用: location="aa.htm?key=88&v="+Math.random(); ,也可以跳转。 function getpdf(){ var message=confirm("您确定要*****!");
if(message==true){
location="aa.htm?key=" & PrimaryKey & "&v="+Math.random();
//location="aa.htm?v="+Math.random();
} else
{ return false;
} } [此贴子已经被作者于2020/4/1 11:26:46编辑过]
|
-- 作者:有点蓝 -- 发布时间:2020/4/1 11:28:00 -- js函数在哪里调用的?引用js文件了没有。学会使用浏览器开发者工具调式找问题:https://www.baidu.com/baidu?word=浏览器开发者工具 |