前言
…
實作
//此代碼都寫在main.js當中,v5.0以上
//運作時調用
var echarts = require('echarts');
Vue.prototype.$echarts = echarts;
再然後在各個.vue檔案頁面上,就可以這樣使用
this.$echarts.init()
this.$echarts.resize()
後語
…
…
//此代碼都寫在main.js當中,v5.0以上
//運作時調用
var echarts = require('echarts');
Vue.prototype.$echarts = echarts;
再然後在各個.vue檔案頁面上,就可以這樣使用
this.$echarts.init()
this.$echarts.resize()
…