wap手机端解决返回上一页,js
2024-10-18 19:21:20
<input id="hd_referrer" type="hidden" />
<a href="javascript:void(0)" onclick="referurl(); ">返回 </a>
<script>
$(function () {
$("#hd_referrer").val(document.referrer);
});
function referurl() {
var ref = $("#hd_referrer").val();
if (ref != "" && ref != "undefined") {
location.href = ref;
}
else {
location.href = history.back(-1);
}
}
</script>
最新文章
- (转)asp.net中获得客户端的IP地址
- js中字符串和数组相互转化的方法
- Java 使用Redis缓存工具的图文详细方法
- Android图形显示之硬件抽象层Gralloc(hal 转)
- nsq的erlang客户端
- 学习PHP C扩展之面向对象开发方式 (转)
- 工具使用 eclipse the user operation is waiting for Building Working to be completed。
- margin负值-内秀篇
- org.springframework.expression.spel.SpelEvaluationException: EL1011E: Method call: Attempted to call method test() on null context object
- 房上的猫:HTML5基础
- linux下双网卡的绑定
- Java-IO之管道(PipedInputStream和PipedOutputStream)
- 【网摘】C#.NET 在 MVC 中动态绑定下拉菜单的方法
- bootstrap的引用和注意事项
- 【洛谷P1972】HH的项链 离线+树状数组
- 从RGB扫描图到数字化等高线矢量图
- MySQL优化系列
- 版本 ------- 2017年最受开发者欢迎的10个Linux发行版
- 从Runoob的Django教程学到的
- CCF CSP 201409-2 画图