setTimeout(): If not defined in EcmaScript spec, where can I learn how it works?

前端 未结 2 692
灰色年华
灰色年华 2020-12-05 12:24

I had another question in SO about setTimeout(), where a user mentioned that if the function argument is a string it gets evaluated in global scope, other wise i

2条回答
  •  佛祖请我去吃肉
    2020-12-05 12:48

    The setTimeout() method is a method on the window object. You can find the link to the MDN documentation below:

    https://developer.mozilla.org/en/DOM/window.setTimeout

提交回复
热议问题