compose: 對 Observable 總體的變換

除了 lift() 以外, Observable 還有一個變換方法叫作 compose(Transformer)。它和 lift() 的區別在於, lift() 是針對事件項和事件序列的,而 compose() 是針對 Observable 自身進行變換。舉個例子,假設在程序中有多個 Observable ,而且他們都須要應用一組相同的 lift() 變換。你能夠這麼寫:php observabl
相關文章
相關標籤/搜索