这里写自定义目录标题 现象解决方案 现象 给echarts绑定自定义点击事件时,无法使用this,并且无法获取到this绑定的数据。 解决方案 增加:const _this = this; 代码块如下: const _this = this; let myChart = echarts.init(document.getElementById("myChart")); myChart.on("click", function(params) { ··· });