vue中引入echarts的方式 vue中引入echarts的方式 import echarts from ‘echarts’ Vue.prototype.$echarts = echarts import * as echarts from ‘echarts’ Vue.prototype.$echarts = echarts 方式一可能会报init undefined的错误,如果报错请使用方式二引入,这可能与echarts的版本有关。