1、运行一下代码,哪一句断言通过? function Ninja() {this.whoAmI = () => this; } var ninja1 = new Ninja(); var ninja2 = {whoAmI: ninja1.whoAmI }// 通过 console.assert(ninja1.whoAmI() === ninja1, "ninja1 here?")// 不通过 console.assert(ninja2.whoAmI() === ninja2, "ninja2 here?") // 声明失败:ninja2 here?// 通过 console.assert(ninja2.whoAmI() === ninja1, "ninja1 here?") 2、运行一下代码,哪一句断言通过? function Ninja() {this.whoAmI = function() {return this;}.bind(this); } var ninja1 = new Ninja(); var ninja2 = {whoAmI: ninja1.whoAmI }// 通过 console.assert(ninja1.whoAmI() === ninja1, "ninja1 here?")// 不通过 console.assert(ninja2.whoAmI() === ninja2, "ninja2 here?") // 声明失败:ninja2 here?// 通过 console.assert(ninja2.whoAmI() === ninja1, "ninja1 here?")