Get Json data in jQuery

后端 未结 4 2035
温柔的废话
温柔的废话 2021-01-28 23:50

There is not a single clear example that explains how to pull json data as simple as possible. I have a valid json and I need to retrieve it with jQuery

my json output i

4条回答
  •  太阳男子
    2021-01-29 00:41

    UPDATE

    Its failing due to your url having 2 dots in the url

    Assuming the request is working (check firebug to see if the request goes out as a script tag & the response comes back) you will need to do

    $.each( json.items, function(){
    
       ...
    
    });
    

    or you can use normal js

    for (var i=0; i

提交回复
热议问题