zoukankan      html  css  js  c++  java
  • wap手机端解决返回上一页,js

     <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>

  • 相关阅读:
    AKKA学习(二) 未完
    AKKA学习(一)
    seata项目结构
    seata demo
    FESCAR
    GTS原理、架构
    Fescar使用(资料)
    高性能异步分布式事务TCC框架(资料汇总)
    TIDB学习资料
    自旋锁
  • 原文地址:https://www.cnblogs.com/qigege/p/5151564.html
Copyright © 2011-2022 走看看