简体   繁体   English

Hammer.js jQUery插件在IE7 / 8中不起作用

[英]Hammer.js jQUery plugin does not work in IE7/8

Hammer.js Compatible table says that jquery.hammer.js works corretly in IE7/8. Hammer.js兼容表显示jquery.hammer.js在IE7 / 8中可以正常工作。 But I have got an error 但是我有一个错误

"Object does not support this property or method"
(method "addEventListener" in "element")    
Hammer.utils.each(types, function(type){
    element.addEventListener(type, handler, false);
});

I use next version of Hammer.js jQUery plugin: 我使用Hammer.js jQUery插件的下一个版本:

/*! jQuery plugin for Hammer.JS - v1.0.0 - 2014-01-02
 * http://eightmedia.github.com/hammer.js
 *
 * Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
 * Licensed under the MIT license *//*! Hammer.JS - v1.0.6 - 2014-01-02
 * http://eightmedia.github.com/hammer.js
 *
 * Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
 * Licensed under the MIT license */

The current version of Hammer.js (v2.0.4) does not support Internet Explorer 8. 当前版本的Hammer.js(v2.0.4)不支持Internet Explorer 8。

Full browser/device support can be found here: 完整的浏览器/设备支持可以在这里找到:

http://hammerjs.github.io/browser-support/ http://hammerjs.github.io/browser-support/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM