I have been searching online for a long time but there is no solution
var theEvent = window.event || arguments.callee.caller.arguments[0];
var srcElement = theEvent.srcElement;
Use this kind of error, arguments ESLint: Avoid arguments.callee (no-call)
ES6 prohibits the call of arguments.callee.
Are you kidding me?
Save the great god and give me some advice! ! ! ! ! ! !
Add event parameters in the event, for example
<button onclick="func(e)"></button>
var func = (e) => { alert(e || window.event ); }
Firefox does not support event solution: http://blog.csdn.net/cyxlzzs/...
If you are not using arrow functions, add a comment.