RxJS开发指南

汇智网 / hubwiz.com / 2017-6-1

RxJS是ReactiveX的JavaScript版本,在观察者模式之上,实现了丰富的操作符,适用于各种情况下的序列数据处理。

¥399.00 ¥199.00
  • 三个月有效期
  • 全新在线编程环境
  • 一对一在线助教答疑
  • 升级包年会员,立享五折优惠
2835
20
基本概念 时钟示例 重构 - 观测者模式 重构 - 使用RxJS RxJS - 错误/结束通知 RxJS - 扩展 Marble Diagram - 宝石图 可视化工具 序列的创建与还原 从零开始创建 - create 预定义序列 - empty/never/throw 创建整数序列 - range 创建周期序列 - interval 创建延时周期序列 - timer 数据集转化 - from / pairs 参数转化 - of 创建单值序列 - just 创建重复值序列 - repeat 创建事件序列 - fromEvent/fromEventPattern 还原为Array - toArray 还原为Map - toMap 还原为Set - toSet 序列的常用变换 延迟 - delay 附加时间间隔 - timeInterval 超时报警 - timeout 附加时间戳 - timestamp 序列循环 - doWhile/while 序列的成员映射 映射 - map 属性映射 - pluck 平坦化映射 - flatMap 活动序列平坦化映射 - flatMapLatest 通知的平坦化映射 - flatMapObserver 拼接映射 - concatMap 通知的拼接映射 - concatMapObserver 序列的归约与聚合运算 归约 - reduce 均值 - average 总和/总数 - sum/count 最大值 - max/maxBy 最小值 - min/minBy 序列的成员过滤 过滤 - filter 按数量跳过 - skip/skipLast 按时间跳过 - skipUntilWithTime/skipLastWithTime 按条件跳过 - skipWhile 按数量截取 - take/takeLast 按时间截取 - takeUtilWithTime/takeLastWithTime 按条件截取 - takeWhile 剔除重复值 - distinct/distinctUntilChanged 位置过滤 - elementAt 模式查找 - first/last/find/findIndex 值忽略 - ignoreElements 序列的打包、开窗与分组 打包 - buffer 按数量打包 - bufferWithCount/bufferWithTimeOrCount 按时间打包 - bufferWithTime 开窗 - window 按数量开窗 - windowWithCount/windowWithTimeOrCount 按时间开窗 - windowWithTime 分组 - groupBy 分段分组 - groupByUntil 多序列的组合运算 序列拼接 - concat/concatAll 最新值合并 - combineLatest 合并最新值 - withLatestFrom 序列融合 - merge/mergeAll 前缀序列 - startWith 序列切换 - switch 按序组合 - zip 尾值组合 - forkJoin 序列的错误与断言处理 错误时执行 - catch 继续执行 - onErrorResumeNext 错误时重新订阅 - retry
登录后发表评论

最新评论


kingc 2017/1/8 4:20

关于RxJS的最佳使用场景, 这里有篇文章很好的解释了前因后果: https://zhuanlan.zhihu.com/p/24677176

ciga 2016/3/21 17:34

@838871837 实际应用场景非常多,如果你的数据流是源源不断的(比如鼠标事件),就可以使用这个库。

838871837@qq.com 2016/3/16 19:52

我想知道这个的实际应用场景是什么? 还是只是采用观察者模式的一种具体实现?

ciga 2016/1/29 18:18

课程代码和库文件请访问这里:https://github.com/hubwiz/rxjs-lesson-lib

Running_V 2016/1/29 10:10

有木有打包的项目下载来练练,我用npm安装的rx在本地运行出错