を理解し、私は新しい演算子を作成したいと私は方法の一つは、このような何かをしていることをdocumentationで見つける:私はlift
が何であるかを理解していないRxのJSリフト法
class MyObservable extends Observable {
lift(operator) {
const observable = new MyObservable()
observable.source = this;
observable.operator = operator;
return observable;
}
// put it here .. or ..
customOperator() {
/* do things and return an Observable */
}
}
// ... put it here...
MyObservable.prototype.mySimpleOperator = mySimpleOperator;
方法と何がここで起こっている、誰かが助けてくれますか?
元のGitHubの提案はそれをうまく説明しています:https://github.com/ReactiveX/RxJS/issues/60 – cartant