How to use type: “POST” in jsonp ajax call

后端 未结 6 2204
半阙折子戏
半阙折子戏 2020-11-22 13:11

I am using JQuery ajax jsonp. I have got below JQuery Code:

 $.ajax({  
        type:\"GET\",        
        url: \"Login.aspx\",  // Send          


        
6条回答
  •  孤独总比滥情好
    2020-11-22 13:36

    JsonP only works with type: GET,

    More info (PHP) http://www.fbloggs.com/2010/07/09/how-to-access-cross-domain-data-with-ajax-using-jsonp-jquery-and-php/

    .NET: http://www.west-wind.com/weblog/posts/2007/Jul/04/JSONP-for-crosssite-Callbacks

提交回复
热议问题