For the complete documentation index, see llms.txt. This page is also available as Markdown.

map

通过一个转换函数,将 Observable 的每个元素转换一遍

map 操作符将源 Observable 的每个元素应用你提供的转换方法,然后返回含有转换结果的 Observable。

演示

输出结果:

参考

Last updated

Was this helpful?