Questions tagged «subscribe»

4
不建议使用订阅:使用观察者而不是错误回调
当我运行lint时,它说: subscribe is deprecated: Use an observer instead of an error callback 代码(来自带有angular-cli的angular 7应用): this.userService.updateUser(data).pipe( tap(() => {bla bla bla}) ).subscribe( this.handleUpdateResponse.bind(this), this.handleError.bind(this) ); 不确切地知道我应该使用什么以及如何使用... 谢谢!
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.