Jquery Each Json Object

前端 未结 3 497
挽巷
挽巷 2021-02-04 01:11

I have a result set returning from a service that gives me the following json

{
    \"ThreadCount\":61,
    \"GroupList\":[
        {\"userName\":\"KLT\",\"count         


        
3条回答
  •  野的像风
    2021-02-04 01:51

    When I've used $.each() I have used a function(i, item), where i is an integer indicating index, and item is the actual object. That is how the documentation shows it being done -- the method is described as function callback(indexInArray, valueOfElement).

提交回复
热议问题