![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
丿东灬东
IT新手一枚
展开
-
用户点击返回,页面触发事件,页面不返回
在一个页面弹出了一个div层,用户触发了返回,则去操作用户定义的方法,浏览器不执行返回上一页window.addEventListener("popstate", function(e) { $('div.clubhome-select-content').hide(); }, false);function pushHistory() { var state = { ti...原创 2018-06-13 11:44:24 · 989 阅读 · 1 评论 -
PHP PHANTOMJS的安装使用
1.首先安装phantomjs http://phantomjs.org/download.html2.设置环境变量,指定到phantomjs安装目录吓得bin目录3.安装phpphantomjs ,使用composer安装 编辑composer.json:{ "require": { "jonnyw/php-phantomjs":"4.*" ...原创 2018-11-08 16:02:04 · 2080 阅读 · 0 评论