📜  init 可观察值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:52.110000             🧑  作者: Mango

代码示例1
// 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));