Rx.Observer.prototype.onNext(value)
Notifies the observer of a new element in the sequence.
参数
value
(Any): Next element in the sequence.
Example
var observer = Rx.Observer.create(
x => console.log(`onNext: ${x}`),
e => console.log(`onError: ${e}`),
() => console.log('onCompleted'));
observer.onNext(42);
// => onNext: 42