笔记:map函数方法映射

------------恢复内容开始------------

map函数可以对后端接口返回一个数组

map存在一个参数时:

 map存在三个参数时:

语法:

array.map(function(currentValue,index,arr), thisValue)

 例子:参考网络

 

 map也可以省略return

猜你喜欢

转载自www.cnblogs.com/charon-66/p/13208634.html
今日推荐