html页面跳转及参数传递
来源:互联网 发布:远洋数据推销什么 编辑:程序博客网 时间:2024/05/19 14:38
点击第一个html页面上 table数据的一行,跳转到第二个html页面显示这个场景下的详细数据,跳转过去时需要把这行数据的id传递给第二个html页面
1. 第一个html页面代码
// table点击事件$('#table').on('click-row.bs.table', function (e, row, $element, field) {if(field == "scene_name" || field == "scene"){var index = $('#table').bootstrapTable('getSelections')[0]; //获取用户选择的行if(typeof(index) == "undefined"){alert("请选择一行数据");}else{ var sceneid = index.id;var exptscene = index.scene;location.href = "get_template?template=recalltactic.html¶ms={\"APP_scene\":{\"scene_id\":\"" + sceneid + "\"}}"; //跳转到recalltactic.html页面,跳转参数放在params里} }});
2.第二个html页面代码
{% set APP_scene = params['APP_scene'] %} //获取页面传递的参数params<!DOCTYPE html><html><head></head><body><script type="application/javascript">var APP_scene = { {% for APP in APP_scene %} "{{APP}}": "{{APP_scene[APP]}}", {% end %} }; //tornado模版,解析APP_scenevar SCENE_id = APP_scene["scene_id"]; //获取传递的scene_id</script></body></html>
阅读全文
0 0
- html页面跳转及参数传递
- html页面跳转传递参数
- html页面跳转传递参数
- SilverLight页面跳转及参数传递
- Android 页面跳转传递参数及页面返回接收参数
- 跳转页面传递参数
- html两个页面跳转时传递参数location.search
- html中如何在页面跳转中传递参数
- Silverlight之页面跳转及参数传递(9)
- Repeater中绑定的LinkButton跳转页面及传递参数
- .jsp与servlet之间页面跳转及参数传递实例
- jsp与servlet之间页面跳转及参数传递实例
- jsp与servlet之间页面跳转及参数传递实例
- jsp与servlet之间页面跳转及参数传递实例
- Android 页面跳转 传递参数
- thinkphp 页面跳转传递参数
- angular-页面跳转传递参数
- vue页面跳转参数传递
- JSP学习笔记
- 图像算法在DSP嵌入式移植中常用的优化方法
- 图片重命名
- React Native常见问题解决 500
- 关于Android的keystore生成和查看keystore
- html页面跳转及参数传递
- 以进销存管理系统为例的SSM框架整合
- Be Like Water--程序设计的平衡和取舍
- Linux关闭防火墙(Centos6.5)
- Spring Data Jpa 配合MongoDB实现持久层对象属性动态增加
- 【Python】Python3 List count()方法
- 好吧,左小波出山了!
- PL0编译语义分析 递归
- java将一个List赋值给另一个List相关问题