以下這段代碼運(yùn)行結(jié)果不對(duì)
var o = { prop:23, f:function() { return this.prop; } }; console.log(o.f);?
這段代碼復(fù)制到瀏覽器運(yùn)行下,看不是不是輸出37,講義有問題,錯(cuò)的
var o = { prop:23, f:function() { return this.prop; } }; console.log(o.f);?
這段代碼復(fù)制到瀏覽器運(yùn)行下,看不是不是輸出37,講義有問題,錯(cuò)的
2017-07-03
舉報(bào)
2017-07-07
It may have iIowa mom
2017-07-07
Knowing the truth mink
2017-07-07
Kim immigrationm
2017-07-03
你代碼都寫錯(cuò)了,console.log(o.f())才是調(diào)用函數(shù),結(jié)果是23