首页 > 应用开发 > > 关于在火狐浏览器下获取事件触发的event属性
当使用js的严格模式时,在火狐中获取触发绑定事件的event属性出现问题,
'caller','callee', and'arguments'properties may not be accessed on strict mode functions or the arguments objectsforcalls to them
但在非严格模式中可以使用
varevent= arguments.callee.caller.arguments[0]
来获取event属性,有没有办法在严格模式下获取event属性?
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4606/viewspace-3149309/ ,如需转载,请注明出处,否则将追究法律责任。