index.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>测试</title><script>function IEVersion() {
  2. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  3. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
  4. var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
  5. var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
  6. if(isIE) {
  7. var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
  8. reIE.test(userAgent);
  9. var fIEVersion = parseFloat(RegExp["$1"]);
  10. if(fIEVersion == 7) {
  11. return 7;
  12. } else if(fIEVersion == 8) {
  13. return 8;
  14. } else if(fIEVersion == 9) {
  15. return 9;
  16. } else if(fIEVersion == 10) {
  17. return 10;
  18. } else {
  19. return 6;//IE版本<=7
  20. }
  21. } else if(isEdge) {
  22. return 12;//edge
  23. } else if(isIE11) {
  24. return 11; //IE11
  25. }else{
  26. return -1;//不是ie浏览器
  27. }
  28. }
  29. var version = IEVersion();
  30. if(version != -1 && version < 10) {
  31. if(window.confirm("您的浏览器版本过低,推荐使用IE10及以上浏览器或者chrome浏览器,点击确定下载chrome安装浏览器。若是360等浏览器,开启兼容模式")){
  32. window.open("/download/44.0.2403.89_chrome_installer.exe", "_blank");
  33. }
  34. }</script><link href=/css/group-app.be5f5bcd.css rel=prefetch><link href=/css/group-controlApp.47a2992d.css rel=prefetch><link href=/css/group-controlApp~group-doTest.40e89122.css rel=prefetch><link href=/css/group-doTest.e7aa7ee8.css rel=prefetch><link href=/css/group-mainPage.c54885d3.css rel=prefetch><link href=/js/group-app.94dfc3d3.js rel=prefetch><link href=/js/group-controlApp.082de928.js rel=prefetch><link href=/js/group-controlApp~group-doTest.b0c159a8.js rel=prefetch><link href=/js/group-doTest.da4cfd66.js rel=prefetch><link href=/js/group-mainPage.9c108c85.js rel=prefetch><link href=/css/app.e9f156cc.css rel=preload as=style><link href=/css/chunk-vendors.0ba8f5b6.css rel=preload as=style><link href=/js/app.0f6bb1ce.js rel=preload as=script><link href=/js/chunk-vendors.e1dfd16b.js rel=preload as=script><link href=/css/chunk-vendors.0ba8f5b6.css rel=stylesheet><link href=/css/app.e9f156cc.css rel=stylesheet></head><body><noscript><strong>We're sorry but my-project doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.e1dfd16b.js></script><script src=/js/app.0f6bb1ce.js></script></body></html>