jquery loop on Json data using $.each

前端 未结 4 2004
后悔当初
后悔当初 2020-11-22 14:56

I have the following JSON returned in a variable called data.

THIS IS THE JSON THAT GETS RETURNED...

[ 
{\"Id\": 10004, \"PageName\"         


        
4条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 15:45

    getJSON will evaluate the data to JSON for you, as long as the correct content-type is used. Make sure that the server is returning the data as application/json.

提交回复
热议问题