Javascript 返回上一页:选中GridVIew的 Chekcbox
1. 选中GridVIew的值
$("#reverse").click(function () {
//$("#checkbox[Num]").attr("checked",!($("#checkbox[Num]").attr("checked")));
var checkboxs = $("#checkbox[Num]");
for (var i = 0; i < checkboxs.length; i++) {
var checkbox = checkboxs[i];
$(checkbox).attr("checked", !$(checkbox).attr("checked"));
}
});
2. Javascript 返回上一页:
1. history.go(-1), 返回两个页面: history.go(-2);
2. history.back().
3. window.history.forward()返回下一页
4. window.history.go(返回第几页,也可以使用访问过的URL)
例:
<a href="javascript:history.go(-1);">向上一页</a>
response.Write("<script language=javascript>")
response.Write("if(!confirm('完成任务?')){history.back();}")
response.Write("</script>")
response.Write("<script language=javascript>history.go(-1);</script>")
<a href="javascript:history.go(-1);">向上一页</a>
页面跳转:onclick="window.location.href='index.aspx'"
最新文章
- 无法加载 DLL“SQLite.Interop.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)
- Convert Sorted List to Binary Search Tree [LeetCode]
- PRML读书会第六章 Kernel Methods(核函数,线性回归的Dual Representations,高斯过程 ,Gaussian Processes)
- 委托delegate使用方法
- Mip-Mapping很重要
- Jlink下载问题
- win7-x64安装mysql5.7.11(官方zip版)
- github如何添加ssh
- mysql进阶(八)怎么对varchar类型排序问题
- <;TCP/IP原理>; (一)
- 关于 iOS 性能优化方面的面试题,
- web认证
- 剑指offer(java版)【转】
- typedef typename
- root权限使用vim不能修改权限
- ubunut下安装ibus_pinyin中文输入法
- 用yourls 搭建短链接地址服务
- js加入购物车抛物线动画
- Hibernate学习笔记一:项目创建与基本配置文件
- 使用C#的两种方式OracleClient组件和OleDB组件连接ORACLE数据库
热门文章
- iOS怎样获取任何App的资源图片?
- Netty Bootstrap(图解)|秒懂
- mooc课程mit 6.00.1x--problem set2解决方法
- 【题解】Making The Grade(DP+结论)
- Django+ajax+jsonp实现借口调用文本处理
- JAVA- continue与break与return关键字
- Eclipse_插件_03_反编译插件_Eclipse Class Decompiler
- linux 进程学习笔记-暂停进程
- AtCoder Grand Contest #026 A - Colorful Slimes 2
- 1091 Acute Stroke (30)(30 分)