似乎我不能使用箭头函数作为观察者,匿名方法可以正常工作。我是不是错过了一些重要的东西,为什么上下文不同?ember.debug.js:32096 TypeError: _this3.get is not a function at endPropertyChanges (ember.debug.js:20682)
at Object.
为什么这段代码可以正常工作: return this.findOne({ username: name });但当我试着这个 return this.findOne({ username: name });当调用TypeError: this.findOne is not a function时,我会得到User.findByName(username)错误