📅  最后修改于: 2022-03-11 14:59:24.583000             🧑  作者: Mango
const observable = new BehaviorSubject("initial value");
observable.subscribe({
next: (value) => console.log("The value is: ", value)
});
observable.next("a new value");