- var sys = {};
- var uav = navigator.userAgent.toLowerCase();
- if (window.ActiveXObject){
- sys.ie = uav.match(/msie ([\\d.]+)/)[1]
- if(sys.ie){
- return sys.ie;
- }else{
- return '';
- }
- }
- //该片段来自于http://www.codesnippet.cn/detail/131120137117.html
来源: http://www.codesnippet.cn/detail/131120137117.html