参数:
名称 类型 属性 描述
other ObservableInput 等待被连接的 Observable。 可以接受多个输入 Observable。...(x => console.log(x));
// 将Observable转换为数组之后的结果
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4,...使用 accumulator (累加器) 函数将源 Observable 所发出的所有值归并在一起, 该函数知道如何将新的源值纳入到过往的累加结果中。...active': true },
{ 'user': 'gdfg', 'age': 31, 'active': false }
]
toArray
将源 Observable转换为数组...// [1, 2, 3, 4]
toPromise
将 Observable 序列转换为符合 ES2015 标准的 Promise 。