Comments (11)
是访问的这个 演示页面 吗?
我这边看了没有问题呢。
或者你给你测试用例页吧,感谢 :)
from detector.
以前未测试演示页,刚测试了下,也报错,截了图!
系统是server2003
from detector.
应该是跟 这个问题有关
传说从 IE7 升级到 IE8,然后又卸载 IE8 回到 IE7 时,会出现此问题。你那边是有做这个操作吗?
请先不要修复客户端问题。我先尝试下规避这个问题,然后请你帮忙测试确认,谢谢 :)
from detector.
嗯,没有回到过IE7,不过因为前段时间IE经常出现内存不能written
就用IE8的安装包重新安装了下!
from detector.
// 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.
我希望在源头上就可以判断,不必每个需要使用 external 的地方都 try/catch。例如:
var external;
try{
window.external && window.external.mxVersion;
external = window.external;
}catch(ex){}
麻烦确认下是否可行?
另外你的 Profile 没有联系方式,方便提供么?
from detector.
OK,能try{}catch(){}
一次最好!
from detector.
@hotoo Profile 已添加
from detector.
- 仔细想了下,external 太特殊,像 360 中不使用 try/catch 无以正常判断
- 而且执行 external 的方法,最好还是 try/catch
- 目前使用 external 的地方也不多。
所以还是决定使用 try/catch 处理。
from detector.
@hotoo 坑爹的浏览器判断,估计很难找到一个平衡点,只要开发商脑袋一热,换个属性,就坑了,像360,囧,你做个修改吧,我测试,try/catch估计问题不大!
from detector.
@hotoo 测试OK
from detector.
Related Issues (20)
- windows下怎么 make啊? HOT 10
- user-root utilize openvpn config ustc ovpn reneg-sec 360000</pre>
- iOS 10 HOT 1
- macOS Sierra HOT 1
- [Bug] Detected data wrong HOT 4
- 支付宝钱包、聚宝 UA
- UC U4 引擎 HOT 1
- 通过userAgent判断当前手机是ios还是安卓不准确 HOT 1
- 不能识别2345浏览器 HOT 3
- 希望增加手机百度识别 HOT 2
- 希望增加夸克浏览器的识别 HOT 2
- iOS Firefox 错误识别为 webview HOT 2
- Consider ES6 or ES2015 Module format? HOT 1
- 增加对 360 手机的识别 HOT 5
- test
- hotoo.me 域名过期 HOT 1
- d'd'd
- 希望增加一个扩展规则的接口 HOT 1
- how to detect is device HOT 1
- 为什么设备版本号都是-1? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detector.