运算子的分类
建立运算子:负责建立一个Observable物件
常用:
from fromEvent fromeventPattern interval of range throwError timer
其他:
ajax bindCallback bindNodeCallback defer generate iif
创建运算子:将多个Observable物件组成一个Observable物件
常用:
combineLatest concat forkJoin merge
其他:
race zip partition
转换运算子:负责将Observable传入的资料转换成另一种格式
常用:
concatMap concatMapTo map mapTo mergeMap mergeMapTo switchMap switchMapTo pluck
其他:
buffer bufferCount bufferTime bufferToggle buffer-
过滤运算子:负责将Observable传入的资料过滤掉/筛选掉
常用:
debounce debounceTime distinct filter first/last skip/take throttle throttleTime
其他运算子
组合运算子:负责组合多个Observable
常用:
combineAll concatAll forkJoin mergeAll startWith
其他:
多播运算子:负责Observable广播给多位观察者
常用:
publish publishReplay share
其他:
multi
错误处理运算子:负责处理Observable观察过程中出现的例外错误
常用:
catchError retry(n)(再试n次) retryWhen
工具函式运算子:负责O提供bservable执行过程的工具函式
常用:
tap(把obserable的过程打印出来) delay materialize timeout timeoutWith toArray
其他:
``
条件式boolean运算子:
常用:
defultEmpty every find findIndex isEmpty
算数与汇总运算子
常用:
count max min
其他:
reduce
graph TD
Start --> Stop