标签:doc data selector inpu http event time stream text
var text = document.querySelector(‘#text‘);
var inputStream = Rx.Observable.fromEvent(text, ‘keyup‘)
.debounceTime(250)
.pluck(‘target‘, ‘value‘)
.switchMap(url => Http.get(url))
.subscribe(data => render(data))
标签:doc data selector inpu http event time stream text
原文地址:http://www.cnblogs.com/jayruan/p/7487079.html