var o = { prop:23, f:function() { return this.prop; } }; console.log(o.f);
这段代码复制到浏览器运行下,看不是不是输出37,讲义有问题,错的
Mmk Ikk kof official and immediately kindm km
Mom
Mmk
It has mmmm k
Mmmm
Ik ki
Mmmmm
Mmmmiiiiim
Iti
The best moment for ki I'llkk
Oils I'll
Knowing m
It is the momma that she kmmmim
K
I'llk
Mom is kink
Moms knowing im
The More okk
I'llio
Mmk
IIi
I knowinmmmm
Moo
I'mmm
KIt
It moon looming Kim
A
It may have iIowa mom
Knowing the truth mink
Kim immigrationm
你代码都写错了,console.log(o.f())才是调用函数,结果是23