hushicai / hushicai.github.io

Blog
https://hushicai.github.io
27 stars 1 forks source link

响应式编程 #8

Open hushicai opened 6 years ago

hushicai commented 6 years ago

什么是响应式编程?

In computing, reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change. - Reactive programming - Wikipedia

两个关注点:

在响应式编程中,我们可以为包括 Click 和 Hover 事件在内的任何东西创建 Data stream,我们也可以对 Data Stream 做一系列操作转换,然后监听 Data Stream 的变化,并最终地做出响应。