0
RxJs的observer.next()
和observer.onNext()
有何區別?是一個版本4和其他5?rxjs,observer.next()和observer.onNext()有什麼區別?
observer.complete()
和observer.onCompleted()
怎麼樣?
我剛剛開始使用RxJS並尋找RxJS v4文檔。
是this the website是否爲v4或v5文檔?
RxJs的observer.next()
和observer.onNext()
有何區別?是一個版本4和其他5?rxjs,observer.next()和observer.onNext()有什麼區別?
observer.complete()
和observer.onCompleted()
怎麼樣?
我剛剛開始使用RxJS並尋找RxJS v4文檔。
是this the website是否爲v4或v5文檔?
這些都是一樣的。見https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md#observer-interface-changes-also-subjects。
網站http://reactivex.io/rxjs/自動從RxJS 5 docblocks生成。
RxJS 4在這裏主要覆蓋http://reactivex.io/documentation/observable.html(也包括其他Rx變體)。
究竟是什麼問題? v5 API與v4 API不同,是的。你可以在GitHub上找到v4 API:https://github.com/Reactive-Extensions/RxJS/tree/v4.1.0/doc – Whymarrh
@Whymarrh因爲當我調用'observer.complete'時,它會拋出一個錯誤。感謝v4文檔 – novaline