如何使用Modernizr检测ActiveX对象?
I don't think modernizr has a built-in test for activeX ( activeX
have nothing to do with modern development , and modernizr checks mainly for new API
support on browsers, CSS3 and HTML5 features)
just try using your own custom function like this:
function activeXSupport(o) {
try {
return new ActiveXObject(o);
}
catch(e) { return false; }
}
...
if (activeXSupport("Microsoft.yourActiveXObject")) {
...
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.