Error : : jQuery was not called

后端 未结 4 1754
时光说笑
时光说笑 2020-12-17 15:03

Here is my ajax call.

 $.ajax({
    type: \"GET\",
    url: \"http://example.com/v1/search?keyword=r\",
    dataType: \"jsonp\",
    crossDomain: true,
    s         


        
4条回答
  •  一个人的身影
    2020-12-17 16:06

    It's an incorrect JSONP Response. The server needs to process the callback=nameOfCallbackFunction argument of the GET Request and serve it as a function wrapper.

    The proper response then should look like this:

    nameOfCallbackFunction({"yourjson": "here"});
    

提交回复
热议问题