我正在尝试向 echart 添加自定义工具箱功能,但出现错误:Uncaught TypeError: Bind must be called on a function
要添加的自定义工具如下:
myTool1: {
show: true,
title: '还原',
icon: '........',
onclick: () => {
alert('myTool1')
}
}
有没有遇到相同问题的呢。像是箭头函数没被识别到。
把箭头函数改成普通函数