问题代码:
const myChart = echarts.init(document.getElementById(el))
myChart 是自定义的,所以存在获取不到的情况,因此!用来表示排除null和undefined
const myChart = echarts.init(document.getElementById(el)!)
04-24
3667
11-29
414