import subject from "nxjs/subject"; let sub = new subject(); //发布订阅 sub.subscribe(data=>{ console.log(data> }); //执行订阅的事件 sub.next(data);
原文地址:https://www.cnblogs.com/llcMite/p/12495867.html
时间: 2024-10-10 20:35:04
import subject from "nxjs/subject"; let sub = new subject(); //发布订阅 sub.subscribe(data=>{ console.log(data> }); //执行订阅的事件 sub.next(data);
原文地址:https://www.cnblogs.com/llcMite/p/12495867.html