//在严格模式下会报错,只能在非严格模式下使用,非严格模式下暂未找到解决方案
//有时候我们要拿到事件的对象e,只能匿名函数才能接收事件e,但是又想移除这个事件
document.addEventListener("click",function(e){
console.log(e)
document.removeEventListener("click",arguments.callee,false);
})
//在严格模式下会报错,只能在非严格模式下使用,非严格模式下暂未找到解决方案
//有时候我们要拿到事件的对象e,只能匿名函数才能接收事件e,但是又想移除这个事件
document.addEventListener("click",function(e){
console.log(e)
document.removeEventListener("click",arguments.callee,false);
})