博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RxJS的基本概念
阅读量:6904 次
发布时间:2019-06-27

本文共 923 字,大约阅读时间需要 3 分钟。

什么是RxJS?

Reactive Extension JavaScript. It's a reactive streams library that allows you to work with asynchronous data streams.

We represent asynchronous data streams using observable sequences.

什么是asynchronous data streams?

1. asynchronous: When we called a function and want to be notified when the result is available, we will have to register a callback. In this way, we can continue with execution without worrying about the webpage becoming unresponsive.

2. data: Raw information in JavaScript.

3. streams: Sequences of data, in other words, information made available over time. Different from arrays, it doesn't have to be present in order.

何谓observable sequences?

就是observables。Observables are flexible and have to patterns: push and pull.

push pattern: We use the push pattern to subscribe to the source stream and react to new data.

pull pattern: We use the pull pattern in the same way above but, synchronously.

转载地址:http://cdmdl.baihongyu.com/

你可能感兴趣的文章
电脑爱好者GHOSTWIN7纯净版V1.0
查看>>
[HNOI2008]玩具装箱TOY
查看>>
Form 对象
查看>>
python os sys模块(二)
查看>>
Windows聚焦转为图片
查看>>
HDU 6103
查看>>
zookeeper 实现分布式锁
查看>>
mysql tinyint
查看>>
UNIX网络编程——getsockname和getpeername函数
查看>>
修改phpMyAdmin 导入MySQL数据库文件大小限制
查看>>
写了一个关于简单的Excel表格导入sqlserver 2013-08-04 15:23 391人阅读 评论(...
查看>>
码农也来关注下经济问题<美元加息>对我们的影响
查看>>
Linux用户及用户组管理
查看>>
Python随笔11
查看>>
ARTS打卡计划第三周-Review
查看>>
jQuery validation
查看>>
JavaScript知识架构学习路径(一)- 变量篇
查看>>
正则表达式
查看>>
20050425:公测啊,晚点再说
查看>>
Windows Azure媒体服务使得伦敦奥运会的云端传输成为可能
查看>>