0
我在IE11的angularEvent 4中遇到mouseEvent问题。我正在使用角4,角-cli。Angular 4 - 新MouseEvent导致IE11错误
当我激活这行代码:
let newEvent = new MouseEvent('mouseleave', {bubbles: true});
IE在控制台抛出这样的例外:
TypeError: Object does not support this operation. at MenuItemComponent.prototype.onClick (./main.bundle.js:821:13) at Anonymous function (Function code:37:9) at handleEvent (./vendor.bundle.js:12039:87) at callWithDebugContext (./vendor.bundle.js:13247:9) at debugHandleEvent (./vendor.bundle.js:12835:5) at dispatchEvent (./vendor.bundle.js:9014:5) at Anonymous function (./vendor.bundle.js:9604:31) at Anonymous function (./vendor.bundle.js:19253:9) at ZoneDelegate.prototype.invokeTask (./polyfills.bundle.js:10732:13) at onInvokeTask (./vendor.bundle.js:4357:21) at ZoneDelegate.prototype.invokeTask (./polyfills.bundle.js:10732:13) at Zone.prototype.runTask (./polyfills.bundle.js:10501:21) at invoke (./polyfills.bundle.js:10796:21)
我在polyfils.ts和rebuilded项目注释去掉一切,我试过IE和ES6垫片...
我找不到类似的东西谷歌,我认为这是一个愚蠢的问题 - 云有人请告诉我解决方案?
它可能是这个? http://stackoverflow.com/questions/1368536/internet-explorer-says-object-doesnt-support-this-property-or-method –
不,我没有在整个页面上的任何id。 :) –