because firefox does not support window.event "s usual solution var evt = window.event | | arguments.callee.caller.arguments [0]
Uncaught TypeError: "caller"," callee", and "arguments" properties may not be accessed on strict mode functions or the arguments objects for calls to them
<el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick" node-key="id"></el-tree>
handleNodeClick(node,data,value) {
console.log(node)
console.log(data)
var myTarget = value.$el
//console.log(value.$el)
console.log(arguments.callee)
let event = window.event || arguments.callee.caller.arguments[0];
let target = event.srcElement||event.target;
},
is there any other way to get the event source of the current event in the firefox browser