聚合物不工作Firefox - document.registerElement不是函数

时间:2017-10-10 02:30:26

标签: javascript html firefox

网页在Google上加载正常。 我听说使用webcomponents.js应该通过使用Polyfill解决问题,但我似乎无法弄清楚我们的错误。 我的index.html文件标题中的代码

<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<script src="bower_components/web-animations-js/web-animations.min.js"></script>
<link rel="import" href="bower_components/polymerfire/firebase-app.html">
<link rel="import" href="/bower_components/polymer/polymer.html">

Firefox控制台输出

  

TypeError:document.registerElement不是函数[了解更多]       TypeError:Polymer.Base._getExtendedPrototype不是函数[了解更多]       TypeError:this._desugarBehaviors不是函数[了解更多]       TypeError:Polymer.Base._getExtendedPrototype不是函数[了解更多]

0 个答案:

没有答案