摘要: Now we want each time we click refresh button, we will get new group of users. So we need to get the refresh button click event stream: var refreshBut 阅读全文
posted @ 2016-03-08 19:31 Zhentiw 阅读(254) 评论(0) 推荐(0)
摘要: From an event map to another event we can use switchMap(), switchMap() accept an function which return an obervable. The following code: When you clic 阅读全文
posted @ 2016-03-08 03:34 Zhentiw 阅读(699) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-1.7.2.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs 阅读全文
posted @ 2016-03-08 03:15 Zhentiw 阅读(241) 评论(0) 推荐(0)
摘要: RxJS is super when dealing with the dynamic value. Let's see an example which not using RxJS: var a = 4; var b = a * 10; console.log(b); // 40 a = 5; 阅读全文
posted @ 2016-03-08 01:25 Zhentiw 阅读(204) 评论(0) 推荐(0)