博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
js针对禁用ie浏览器(包括ie11)在内打开网页弹窗提示更好的体验解决方案
阅读量:4111 次
发布时间:2019-05-25

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

js:弹窗选择layer

function isIE() { //ie?        if (!!window.ActiveXObject || "ActiveXObject" in window) {            //layer.alert("请选择使用Microsoft Edge浏览器或者Chrome浏览器更好的体验。");            layer.open({                title: "浏览器兼容提示",                content: "请选择使用Microsoft Edge浏览器或者Chrome浏览器更好的体验",                yes:function(index,layero){                    layer.close(index);                    window.close(index);                },                cancel: function (index) {                    layer.close(index);                    window.close(index);                }            });        }    }

调用:

$(document).ready(function() {        isIE();})

 

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

你可能感兴趣的文章
Linux网络编程---I/O复用模型之poll
查看>>
Java NIO详解
查看>>
在JS中 onclick="save();return false;"return false是
查看>>
idea 有时提示找不到类或者符号
查看>>
matplotlib.pyplot.plot()参数详解
查看>>
MFC矩阵运算
查看>>
ubuntu 安装mysql
查看>>
c# 计算器
查看>>
C# 简单的矩阵运算
查看>>
gcc 常用选项详解
查看>>
c++输出文件流ofstream用法详解
查看>>
firewalld的基本使用
查看>>
Linux下SVN客户端使用教程
查看>>
Linux分区方案
查看>>
nc 命令详解
查看>>
如何使用 systemd 中的定时器
查看>>
git命令速查表
查看>>
linux进程监控和自动重启的简单实现
查看>>
OpenFeign学习(三):OpenFeign配置生成代理对象
查看>>
OpenFeign学习(四):OpenFeign的方法同步请求执行
查看>>