vue-cli項目中引入echarts

1 安裝echarts npm install echarts --save 2 main.js中引用和聲明 3 組件中使用 // 聲明 data() { myChart: null } // 調用 mounted() { this.draw() } // 定義 methods: { draw() { this.myChart = this.$echarts.init(document.
相關文章
相關標籤/搜索