map() get() confusion

前端 未结 3 925
终归单人心
终归单人心 2020-12-01 08:18

I\'m just going through the jQuery API and I\'m a bit confused on map() & get() method. I know I\'m wrong but the map() method lo

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 08:29

    Each does not seem to return a resulting array while map returns an array containing the reurn values for all the callbacks.

    Get returns an array of the pure items that was wrapped in jquery objects as lonesomeday noted. (corrected)

提交回复
热议问题