My World.

It's the loneliest feeling not to know who you are.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年10月31日

摘要: this问题 (1)this是js的一个关键字,指定一个对象,然后替代this; 函数中的this指向行为发生的主体,函数外的this都指向window,没有意义 (2)函数内的this跟函数在什么环境下定义没有关系,意思就是跟他的作用域没有关系, 而只跟自己执行时候的主体有关 (3)主体:就是看它 阅读全文
posted @ 2018-10-31 20:35 blankOne 阅读(347) 评论(0) 推荐(0)