此模塊依賴於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