博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用js禁止浏览器回退
阅读量:4137 次
发布时间:2019-05-25

本文共 260 字,大约阅读时间需要 1 分钟。

<script language="javascript">

        history.pushState(null,null,document.URL);

        window.addEventListener('popstate',finction(){

                var url = document.URL;

                if(url.indexOf("/register/register") > -1){

                    history.go(-1);

                }else{

                    history.pushState(null,null,url);

                }

        })

</script>

转载地址:http://rpxvi.baihongyu.com/

你可能感兴趣的文章
file lock in the Linux system
查看>>
Increase the android VM heap size.
查看>>
A successful Git branching model
查看>>
Use ADB to connect phone with Windows 7 over tcp
查看>>
The Four-Way Handshake
查看>>
802.11 Authentication and Association
查看>>
Open System authentication
查看>>
Wireless Operating Modes
查看>>
Wifi Connection
查看>>
802.11 Scan and Discovery
查看>>
RTS/CTS协议 (Both wlan and com are using it)
查看>>
Wireless Ad-Hoc Network – Linux
查看>>
802.11ac and 802.11ad
查看>>
IEEE 802 LAN/MAN Standards Committee
查看>>
AES算法分析与实现
查看>>
802.11 Four-way handshake Messages
查看>>
TI DaVinci(达芬奇)入门
查看>>
There's Much More than Intel/AMD Inside
查看>>
what is difference between IRQ and FRQ
查看>>
使用 SCons 轻松建造程序
查看>>