Skip to content

高阶Observable

rxjs-space edited this page Oct 24, 2016 · 1 revision

写作原因/目的

简单介绍高阶Observable

创建高阶Observable

var clicks = Rx.Observable.fromEvent(document, 'click'); var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000))

压扁高阶Observable

mergeAll switch

一口气创建并压扁高阶Observable

mergeMap switchMap