<x>
使用Polymer 1.x的UPC-A(目前)条形码的Web组件包装。
维护。
演示版
。
用法
导入Web组件的polyfill:
< script src =" bower_components/webcomponentsjs/webcomponentsjs.js " > </ script >
导入自定义元素:
< link rel =" import " href =" src/x-barcode.html " >
开始使用它!
< x> </ x>
设置
为了在本地运行它,您需要基本的服务器设置。
安装 。
安装 :
$ [sudo] npm install -g grunt-cli
安装本地依赖项:
$ npm install
运行本地服务器,然后打开http://localhost:8000 。
评论0
最新资源