Skip to content

IE 10 以下 , setTimeout and setInterval 奇怪现象 #2

@caihuiji

Description

@caihuiji
  • IE10 以下版本中 setTimeout 为只读方法,无法篡改替换 , 而 window.setTimeout 是可以修改的
    qq 20150524233244
    所以,我们只对 window.setTimeout 进行切面处理。当然我们为了保证统一,也只对window.setInterval 进行了同样处理
  • IE6、IE7、IE8中window.setTimeout和window.setInterval为Object,非Function,没有继承apply和call方法
    所以不能对 window.setTimeout 或 window.setInterval 像其他切面处理那样直接进行 apply 。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions