【问题标题】:Polymer "webcomponentsjs": `"MutationObserver" undefined` error in IE9聚合物“webcomponentsjs”:IE9 中的“MutationObserver”未定义错误
【发布时间】:2019-08-30 23:37:31
【问题描述】:

使用 Babel 将 https://github.com/webcomponents/webcomponentsjs 项目中的所有文件编译到 IE9 Javascript,IE9 兼容模式下的 IE11 在控制台中报告 "MutationObserver" undefined 错误。

如何编译?

【问题讨论】:

    标签: polymer internet-explorer-9 babeljs


    【解决方案1】:

    从文档来看,MutationObserver 似乎只支持 IE 11 版本。

    所以这可能是问题的原因。

    我建议您按原样使用 IE 11,不要在其中使用 IE 9 文档模式以避免此问题。

    参考:

    MutationObserver

    【讨论】:

      猜你喜欢
      • 2018-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多