Get Json data in jQuery

后端 未结 4 2026
温柔的废话
温柔的废话 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 00:18

    Try this one

    $.getJSON("http://www.pangeaadvisors.org/sep123/blog.cs.asp",{ PROCESS: "ViewBlog" }, function(json) {
                        for (var i = 0; i < json.length; i++) {
                            var title = json[i].Title;
                            $('
    ').html(title).appendTo('#news_wrap'); } });

    as redsquare answered you need for or $.each :)

提交回复
热议问题