rxjs 操作符(operator)和operation的原理

一.what is operator ? 二.how this happend? 正文: what is operator ? 先来看一个栗子: import { of } from 'rxjs'; import { tap, pluck, mapTo } from 'rxjs/operators'; of({val: 1}).pipe( tap(i => console.log(i)), pluck('val'), mapTo('hello world') ) 复制代码 pipe中...