利用polymer平台构建的自定义组件 Polymer.
不会的,可以看看这个官方的hello world例子 hello-world-polymer.
Install the component using Bower:
$ bower install hello-feenan --save
Or download as ZIP.
-
Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/hello-feenan/dist/hello-feenan.html">
-
Start using it!
<hello-feenan></hello-feenan>