1
Hammer.js兼容表表示jquery.hammer.js在IE7/8中正常工作。但我有一個錯誤Hammer.js jQUery插件在IE7/8中不起作用
"Object does not support this property or method"
(method "addEventListener" in "element")
Hammer.utils.each(types, function(type){
element.addEventListener(type, handler, false);
});
我用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 <[email protected]>;
* Licensed under the MIT license *//*! Hammer.JS - v1.0.6 - 2014-01-02
* http://eightmedia.github.com/hammer.js
*
* Copyright (c) 2014 Jorik Tangelder <[email protected]>;
* Licensed under the MIT license */