📅  最后修改于: 2022-03-11 14:56:52.110000             🧑  作者: Mango
// RxJS v6+import { of } from 'rxjs';//emits any number of provided values in sequenceconst source = of(1, 2, 3, 4, 5);//output: 1,2,3,4,5const subscribe = source.subscribe(val => console.log(val));