Using jQuery to get json data returns invalid label error

后端 未结 5 957
借酒劲吻你
借酒劲吻你 2020-12-17 21:44

I have this code, and have also tried something similar using the $.getJson function:

jQuery(document).ready(function(){
    var kiva_url = \"http://api.kiva         


        
5条回答
  •  时光取名叫无心
    2020-12-17 22:09

    This is the answer http://forum.jquery.com/topic/jquery-getjson-invalid-label

    Simply wrap your Json response with your callback request E.g. jQuery16203473509402899789_1315368234762({"Code":200,"Message":"Place added successfully","Content":""}); where jQuery16203473509402899789_1315368234762 is your callback request (you can get it via querystring) {"Code":200,"Message":"Place added successfully"} is your JSON response

提交回复
热议问题