//判断是否安装vg插件
if (!DetectActiveX('vg.vgctrl.1')) {
layer.open({
type: 1,
skin: 'layui-layer-rim', //加上边框
area: ['420px', '240px'], //宽高
content: "<p style='margin:10px 20px;'><span style='color:red;font-size:16px;'>请下载并安装最新的浏览器插件,并使用<span lang=EN-US>IE</span>浏览器进行访问。<span></p>" +
"<p style='margin:10px 20px;'><span style='font-size:12px;'>注:已知360杀毒会对插件进行病毒误报,安装前请将360杀毒完全退出。</span></p>" +
"<p style='margin:10px 20px;'><span>32位操作系统:<a href='/content/resources/VGX86.exe'>VGX86</a></span> <span>64位操作系统:<a href='/content/resources/VGX64.exe'>VGX64</a></span></p>"
});
}
function DetectActiveX(name) {
try {
var comActiveX = new ActiveXObject(name); // 判断IE是否已经安装插件
} catch (e) {
return false;
}
return true;
}