0
這個簡單的代碼中缺少的是什麼?未定義聚合物,Firefox中的參考錯誤
<!DOCTYPE html>
<html>
<head>
<base href="//polygit.org/components/">
<script src="webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="paper-material/paper-material.html">
<dom-module id="ui-firefox">
<template>
<paper-material>Can you see me in Firefox?</paper-material>
</template>
<script>
Polymer({
is: "ui-firefox",
ready: function(){ console.log("Am I ready?"); }
});
</script>
</dom-module>
</head>
<body>
<ui-firefox> </ui-firefox>
</body>
</html>
這裏提琴樣本https://jsfiddle.net/s4oh43za/
我看了幾個帖子,但事先我找不到解決方案,這個簡單的例子
感謝,福斯托
事實上,這麼簡單,有據可查。 還有很多要學習,但享受它 感謝一個很好的帶我漂浮 –