关于this
来源:互联网 发布:如何访问mpp数据库 编辑:程序博客网 时间:2024/05/01 12:57
1.this: this所在的函数在哪个对象中, this就指向对象(大部分情况)
this: 指针
window两大特性:
所有全局的变量都是window的属性
所有全局的函数都是window的方法
2.少数情况特殊:
如果this在定时器中, this就指向window
如果this在事件源中, this就指向产生这个事件源的对象
另外,在构造函数里面,在这个函数的内部将this指向函数本身。
0 0
- 关于This
- 关于this
- 关于this
- 关于this
- 关于this
- 关于this
- 关于this
- 关于this
- 关于this指针
- 关于this指针
- 关于synchronized(this)
- 关于this 的使用
- 关于synchronized(this)
- js-----关于this
- 关于JavaScript的this
- 关于this指针
- android关于this
- 关于this 和 super
- FTP 协议和 HTTP 协议的12点比较(文件上传/下载)
- windows使用sonarqube6
- 基础几何体
- 打开Myeclipse时Tomcat服务器报错解决办法
- gcc -lpthread和gcc -pthread的区别
- 关于this
- VS2013配置编译Caffe-Win10_X64
- linux apache +svn
- 在ubuntu16.04搭建git服务器
- bzoj1468 tree 点分治
- http 协议 基础
- Linux 添加新硬盘 LVM操作
- 关于政治类的词汇
- 【Android - 基础】之Animator属性动画