摘要: JS监听手机返回键,需要用些前端的“奇技淫巧”。 核心代码如下: if (window.history && window.history.pushState) { $(window).on('popstate', function() { var hashLocation = location.h 阅读全文
posted @ 2017-04-10 08:36 Prolovecui 阅读(20404) 评论(3) 推荐(0) 编辑