var length = 10;function fn() {? console.log(this.length);}var obj = {? length: 5,? method: function(fn) {? ? fn();? ? arguments[0]();? }};obj.method(fn, 1);為什么輸出時10 2?
考察this的問題
李天母3956437
2016-11-01 00:33:09