Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如我们有一些效果:
... switchMap(() => of(action1, action2)) ...
和
... switchMap(() => [action1, action2]) ...
我们有什么不同吗?
第二个是正确的。
第一种方法是 2 次发射,它会多次通知所有订阅者。