this
来源:互联网 发布:软件试用报告范文 编辑:程序博客网 时间:2024/06/08 10:26
有对象就指向调用对象
没调用对象就指向全局对象
用new构造就指向新对象
通过 apply 或 call 或 bind 来改变 this 的所指。
Callee 指向拥有这个arguments对象的函数
This 全局作用域中调用指向window;当赋给对象O时就会指向O
Caller 调用当前函数的函数的引用
Apply() apply(this,arguments)
Call() call(this,num1,num2)
Bind()
匿名函数中this指向window
0 0
- this
- this
- this
- this
- this
- this
- this
- this
- this
- this
- this
- $(this)
- this
- this
- this
- this
- $(this)
- this
- 闭包
- android 中activity详细的启动模式
- 23种设计模式—UML图例
- ‘tools.jar’seems to be not in Studio classpath Please ensure JAVA_HOME points to JDK rather than JRE
- MHA参数的理解简译 【转】
- this
- TestNG概述
- Windows程序设计(1)——Win32运行原理(三)
- 写一个特别无聊的博客--让指定的字符串重复
- 原型与继承
- 一个值5000元,且一分钟就学会的“of undefined” bug的解决办法
- D3P0实践小例子
- 23种设计模式—单例模式
- 【题解】Leetcode.319.Bulb Switcher