如何屏蔽旧版IE浏览器访问屏蔽低版本ie浏览器.txt页面?

更新于
2026-09-29 09:08:40
0阅读来源:SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计121个文字,预计阅读时间需要1分钟。

如何屏蔽旧版IE浏览器访问屏蔽低版本ie浏览器.txt页面?

检测浏览器版本,不使用冗余文字,不超过100字:

javascriptvar Sys={};var ua=navigator.userAgent.toLowerCase();Sys.ie=/msie ([\d.]+)/.exec(ua)[1];alert(Sys.ie);if (Sys.ie=='12') { alert('你当前的IE版本为:IE 12');}

屏蔽低版本ie浏览器.txt

var Sys = {}; var ua = navigator.userAgent.toLowerCase(); alert(ua) if (window.ActiveXObject) { Sys.ie = ua.match(/msie ([\d.]+)/)[1]; alert(ua.match(/msie ([\d.]+)/)) if (Sys.ie <= 12) { alert('你目前的IE版本为' + Sys.ie + '版本太低,请升级!'); // location.href = "windows.microsoft.com/zh-CN/internet-explorer/downloads/ie"; } }

如何屏蔽旧版IE浏览器访问屏蔽低版本ie浏览器.txt页面?

本文共计121个文字,预计阅读时间需要1分钟。

如何屏蔽旧版IE浏览器访问屏蔽低版本ie浏览器.txt页面?

检测浏览器版本,不使用冗余文字,不超过100字:

javascriptvar Sys={};var ua=navigator.userAgent.toLowerCase();Sys.ie=/msie ([\d.]+)/.exec(ua)[1];alert(Sys.ie);if (Sys.ie=='12') { alert('你当前的IE版本为:IE 12');}

屏蔽低版本ie浏览器.txt

var Sys = {}; var ua = navigator.userAgent.toLowerCase(); alert(ua) if (window.ActiveXObject) { Sys.ie = ua.match(/msie ([\d.]+)/)[1]; alert(ua.match(/msie ([\d.]+)/)) if (Sys.ie <= 12) { alert('你目前的IE版本为' + Sys.ie + '版本太低,请升级!'); // location.href = "windows.microsoft.com/zh-CN/internet-explorer/downloads/ie"; } }

如何屏蔽旧版IE浏览器访问屏蔽低版本ie浏览器.txt页面?