var o ={m:function(){var self = this;console.log(this === o);//truef();function f(){console.log(this === o);//falseconsole.log(self === o);//true}}};复制代码
this
为关键字,指向它的调用者。嵌套函数f
中的this
指向全局对象
时间:2022-06-13 06:55:32
var o ={m:function(){var self = this;console.log(this === o);//truef();function f(){console.log(this === o);//falseconsole.log(self === o);//true}}};复制代码
this
为关键字,指向它的调用者。嵌套函数f
中的this
指向全局对象
成功的关键(The Key to Success)1200字英语作文
2024-07-31
高一学生优秀作文集锦:五篇1200字以上的写人范文 最新精选
2024-07-31