在这两个component 中通过定义在messageService 的Subject 共享数据,通过next() 方法使得Subject 是数据生产者(可观察对象),通过asObservable() ...
確定! 回上一頁