问问题
143 次
1 回答
0
查看 R2D3 源代码,它使用了仅从 IE9 开始支持的 addEventListener 方法:
https://github.com/mhemesath/r2d3/search?utf8=%E2%9C%93&q=addeventlistener
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addEventListener
R2D3Element.prototype.addEventListener = function(type, listener) {
this.domNode.childNodes[i].r2d3.addEventListener(type, listener);
}
这解释了为什么它在 IE8 上崩溃
于 2015-02-05T00:03:13.310 回答