codecamp

RxJS merge(已弃用)

弃用说明

不赞成使用 static merge

merge<T, R>(...observables: any[]): OperatorFunction<T, R>

参量

可观察的 类型:any[]

returns

OperatorFunction<T, R>

超载

merge(scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>

参量 类型
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsMonoTypeOperatorFunction<T>

merge(concurrent?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>

参量 类型
defaultValue 可选的。默认值为undefined。类型:number
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsMonoTypeOperatorFunction<T>

merge(v2: any, scheduler?: SchedulerLike): OperatorFunction<T, T | T2>

参量 类型
v2 类型:any
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2>

merge(v2: any, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2>

参量 类型
v2 类型:any
defaultValue 可选的。默认值为undefined。类型:number
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2>

merge(v2: any, v3: any, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3>

参量 类型
v2 类型:any
v3 类型:any
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3>

merge(v2: any, v3: any, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3>

参量 类型
v2 类型:any
v3 类型:any
defaultValue 可选的。默认值为undefined。类型:number
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3>

merge(v2: any, v3: any, v4: any, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4>

参量 类型
v2 类型:any
v3 类型:any
v4 类型:any
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3 T4>

merge(v2: any, v3: any, v4: any, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4>

参量 类型
v2 类型:any
v3 类型:any
v4 类型:any
defaultValue 可选的。默认值为undefined。类型:number
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3 T4>

merge(v2: any, v3: any, v4: any, v5: any, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5>

参量 类型
v2 类型:any
v3 类型:any
v4 类型:any
v5 类型:any
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3 T4 T5>

merge(v2: any, v3: any, v4: any, v5: any, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5>

参量 类型
v2 类型:any
v3 类型:any
v4 类型:any
v5 类型:any
defaultValue 可选的。默认值为undefined。类型:number
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3 T4 T5>

merge(v2: any, v3: any, v4: any, v5: any, v6: any, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>

参量 类型
v2 类型:any
v3 类型:any
v4 类型:any
v5 类型:any
v6 类型:any
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3 T4 T5 T6>

merge(v2: any, v3: any, v4: any, v5: any, v6: any, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>

参量 类型
v2 类型:any
v3 类型:any
v4 类型:any
v5 类型:any
v6 类型:any
defaultValue 可选的。默认值为undefined。类型:number
调度器 可选的。默认值为undefined。类型:SchedulerLike

returnsOperatorFunction<T, T T2 T3 T4 T5 T6>

merge(...observables: any[]): MonoTypeOperatorFunction<T>

参量 类型
可观察的 类型:any[]

returnsMonoTypeOperatorFunction<T>

merge(...observables: any[]): OperatorFunction<T, R>

参量 类型
可观察的 类型:any[]

returnsOperatorFunction<T, R>

RxJS max
RxJS mergeAll
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

RxJS operators

RxJS fetch

RxJS testing

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }