标签:code int can pre 操作 工具 ble psc schedule
RxJS 的 import 路径有以下 5 种:
1.创建 Observable 的方法、types、schedulers 和一些工具方法
import { Observable, Subject, asapScheduler, pipe, of, from, interval, merge, fromEvent, SubscriptionLike, PartialObserver } from 'rxjs';
2.操作符 operators
import { map, filter, scan } from 'rxjs/operators';
3.ajax
import { ajax } from 'rxjs/ajax';
4.webSocket
import { webSocket } from 'rxjs/webSocket';
5.测试
import { TestScheduler } from 'rxjs/testing';
注:按需引入Rxjs模块,防止打包后文件过大。
标签:code int can pre 操作 工具 ble psc schedule
原文地址:https://www.cnblogs.com/honkerzh/p/10794510.html