ITPub博客

首页 > 应用开发 > > 关于在火狐浏览器下获取事件触发的event属性

关于在火狐浏览器下获取事件触发的event属性

作者:petterchx 时间:2019-08-16 09:31:18 0 删除 编辑

当使用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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-10-24

  • 博文量
    131
  • 访问量
    30132