[Reactive Programming] RxJS dynamic behavior
2015-10-02 16:04
591 查看
This lesson helps you think in Reactive programming by explaining why it is a beneficial paradigm for programming. See how reactive programming helps you understand the dynamic behavior of a value evolving over time.
It allows you to specify the dynamic behavior of a value completely at the time of declaration.
It allows you to specify the dynamic behavior of a value completely at the time of declaration.
console.clear(); var a = 3; var b = a * 10; console.log(b); // Then if you want to change 'a' and wants 'b' change accordingly // You need to declare b again var a = 4; b = a * 10; console.log(b); console.log("Reactive Progarmming"); // You need to declare all the dynamic behavior at first // Here for example you need to change a to 4 or 5 var streamA = Rx.Observable.of(3, 4, 5); var streamB = streamA.map((a) => { return a * 10; }); streamB.subscribe(function(b){ console.log(b); });
相关文章推荐
- [Reactive Programming] Using an event stream of double clicks -- buffer()
- React-Native测试报告
- React Native for Android 学习笔记(9-29)
- ReactJS学习笔记八:动画
- React Native真机调试
- React Native 官方文档中文版
- React Native 教程-基础教程
- React Native课程-入门
- ReactiveCocoa 和 MVVM 入门
- Reactivecoco 文档翻译(1) 基本操作方法
- React学习笔记(5)--事件
- ReactJS读书笔记一:深入理解JSX
- react经验
- React显示和提交数据
- 细说ReactiveCocoa的冷信号与热信号(二):为什么要区分冷热信号
- 细说ReactiveCocoa的冷信号与热信号(一)
- 最快让你上手ReactiveCocoa之进阶篇
- 最快让你上手ReactiveCocoa之基础篇
- React的React Native
- ReactJs 技巧