此模块依赖于dashjs
库,您须要安装via npm install dashjs --save
并将其包含在.angular-cli.json
配置文件中:html
如这样的在ionic3中引入js咱们应该在package.json里添加设置
在根目录建立config文件{
...
"apps": [ { ... "scripts": [ "../node_modules/dashjs/dist/dash.all.min.js" ], ... } ], ... }
在config中配置node
而后再package.json里配置npm
最后一步在index.html里引入json
到此就大功告成了 哈哈app