RxJS的基本概念

什么是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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值