在Observable中我们可以通过switchMap操作符处理异步问题,一个异步搜索看起来会是这样: input$.pipe(switchMap(keyword => Observable.ajax(/* ... */)) ...
確定! 回上一頁