switchmap 相关问题


RxJs 计时器仅调用一次,而不是每秒调用一次

下面是我的代码: this.callActiveListSubscription = 定时器(0,1000).pipe(switchMap(() => this.realtimeSupervisorHeatMapService.getLiveCallList())).subscribe((data: any) => { 控制台.log('


© www.soinside.com 2019 - 2024. All rights reserved.