LBJDJW opened a new issue, #18833: URL: https://github.com/apache/echarts/issues/18833
### Version 5.0 ### Link to Minimal Reproduction none ### Steps to Reproduce  ### Current Behavior if (clickType === 'font') { myChart.on('click', params => { var event = params.event; // 获取事件对象 var target = event.target; // 获取点击的目标元素 var x = event.clientX; // 获取点击事件在页面上的横坐标 var y = event.clientY; // 获取点击事件在页面上的纵坐标 console.log('点击区域:', target); console.log(x, y, 7777); onClick(params); }); } ### Expected Behavior if (clickType === 'font') { myChart.on('click', params => { var event = params.event; // 获取事件对象 var target = event.target; // 获取点击的目标元素 var x = event.clientX; // 获取点击事件在页面上的横坐标 var y = event.clientY; // 获取点击事件在页面上的纵坐标 console.log('点击区域:', target); console.log(x, y, 7777); onClick(params); }); } ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
