加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

RxJS的基本概念

发布时间:2020-12-17 10:06:37 所属栏目:安全 来源:网络整理
导读:什么是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.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读