Git Product home page Git Product logo

Comments (11)

hotoo avatar hotoo commented on June 18, 2024

是访问的这个 演示页面 吗?
我这边看了没有问题呢。
或者你给你测试用例页吧,感谢 :)

from detector.

nuintun avatar nuintun commented on June 18, 2024

以前未测试演示页,刚测试了下,也报错,截了图!
detector
系统是server2003

from detector.

hotoo avatar hotoo commented on June 18, 2024

应该是跟 这个问题有关

传说从 IE7 升级到 IE8,然后又卸载 IE8 回到 IE7 时,会出现此问题。你那边是有做这个操作吗?

请先不要修复客户端问题。我先尝试下规避这个问题,然后请你帮忙测试确认,谢谢 :)

from detector.

nuintun avatar nuintun commented on June 18, 2024

嗯,没有回到过IE7,不过因为前段时间IE经常出现内存不能written就用IE8的安装包重新安装了下!

from detector.

nuintun avatar nuintun commented on June 18, 2024
// Maxthon
["mx", function (ua){
    if (external) {
        try {
            return {
                version: external.mxVersion || external.max_version
            };
        } catch (e) {}
    }
    return /\bmaxthon(?:[ \/]([0-9.]+))?/;
}]

按照1.1.0做下修改可以规避这个问题!

from detector.

hotoo avatar hotoo commented on June 18, 2024

我希望在源头上就可以判断,不必每个需要使用 external 的地方都 try/catch。例如:

var external;
try{
  window.external && window.external.mxVersion;
  external = window.external;
}catch(ex){}

麻烦确认下是否可行?
另外你的 Profile 没有联系方式,方便提供么?

from detector.

nuintun avatar nuintun commented on June 18, 2024

OK,能try{}catch(){}一次最好!

from detector.

nuintun avatar nuintun commented on June 18, 2024

@hotoo Profile 已添加

from detector.

hotoo avatar hotoo commented on June 18, 2024
  • 仔细想了下,external 太特殊,像 360 中不使用 try/catch 无以正常判断
  • 而且执行 external 的方法,最好还是 try/catch
  • 目前使用 external 的地方也不多。

所以还是决定使用 try/catch 处理。

from detector.

nuintun avatar nuintun commented on June 18, 2024

@hotoo 坑爹的浏览器判断,估计很难找到一个平衡点,只要开发商脑袋一热,换个属性,就坑了,像360,囧,你做个修改吧,我测试,try/catch估计问题不大!

from detector.

nuintun avatar nuintun commented on June 18, 2024

@hotoo 测试OK

from detector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.