我正在导入polymer.html
,paper-input.html
,core-input.html
,但我仍然收到Polymer不是函数的错误。我错过了什么?
以下导入部分:
<script src="../components/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="../../../bower_components/paper-input/paper-input.html">
<link rel="import" href="../../../bower_components/paper-input/paper-input-decorator.html">
<link rel="import" href="../../../bower_components/core-input/core-input.html">
<link rel="import" href="../../../bower_components/polymer/polymer.html">
答案 0 :(得分:0)
如果在Polymer.importHref上抛出错误,请尝试this.importHref
有时文档并不总是与他们的演示相匹配。
如果你的纸张输入之类的东西被抛出,请检查它是否是正确的目录