Do和Map有什么区别?

问题描述 投票:0回答:1

do运算符和map运算符有什么区别?似乎是一样的。我正在学习RxSwift。

请检查do和map的大理石图。

do:http://reactivex.io/documentation/operators/do.html

地图:http://reactivex.io/documentation/operators/map.html

ios swift reactive-programming rx-swift reactive
1个回答
0
投票

map->用于将一个流转换为另一流。

do->用于对每个流事件执行一些操作或任务

© www.soinside.com 2019 - 2024. All rights reserved.