簡單學習rxjs中map、concatAll、concatMap、mergeAll、mergeMap、switchAll、switchMap

1、map map和javascript中的數組的map方法類似,不過這裏爲了結合下面的demo,我先用map做一個我們不想要的效果: const getData = (param) => { return of(`return: ${param}`).pipe( delay(Math.random() * 1000) ) }; from([1, 2, 3,
相關文章
相關標籤/搜索