Parse Json file with Jquery ? not working

后端 未结 1 1455
情深已故
情深已故 2021-01-28 16:04

I am trying to parse json file in my phonegap application. after searching on Stackoverflow I found this code

here is my code

  $.getJSON(\'http://shobin         


        
1条回答
  •  走了就别回头了
    2021-01-28 16:15

    Try this:

    $(document).ready(function() {
        var url =  "http://www.shobingg.com/cms/sites/php/message.json";
        $.getJSON(url + "?callback=?", null, function(data) {
            console.log(data);
        });
    });
    

    Refered from jsonp with jquery

    0 讨论(0)
提交回复
热议问题