本文共 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/