导入echarts时用:import echarts from ‘echarts’ 出现 “Cannot read property ‘init’ of undefined” 报错,改成 import * as echarts from ‘echarts’ 后解决。
Echarts 初始化TypeError: Cannot read properties of undefined (reading ‘init‘)
最新推荐文章于 2024-05-31 17:40:50 发布
导入echarts时用:import echarts from ‘echarts’ 出现 “Cannot read property ‘init’ of undefined” 报错,改成 import * as echarts from ‘echarts’ 后解决。