var obj = { lenght: 20, myLength: function (fn) { console.log(this.length) fn(); arguments[0](); } } var myFn = function () { console.log(this.length) }; var length = 200; obj.myLength(myFn)
2022-10-17 17:57:37
var obj = { lenght: 20, myLength: function (fn) { console.log(this.length) fn(); arguments[0](); } } var myFn = function () { console.log(this.length) }; var length = 200; obj.myLength(myFn)