function X(){ return object = { name:'object', f1(x){ x.f2.call(this) }, f2(){ console.log(this) } }}var options = { name:'options', f1(){}, f2(){ console.log(this) }}var x = X()x.f1(options)
x.f2.call(this)中call(this)是什么意思
慕的地6264312
2019-03-12 17:15:32