开发者

jquery ajax outputting success status

开发者 https://www.devze.com 2023-02-03 12:53 出处:网络
I\'m using a basic ajax function with on success having success: function(html){ jQuery(\"#output\").html(html);

I'm using a basic ajax function with on success having

success: function(html){
jQuery("#output").html(html);
}

the callback is always successful giving me either 0 or -1 at the end of my returned开发者_如何学Python html. What is causing this?


Answer to your question is very simple.

The url to which the ajax is called is either returning output 0 or -1 depending on the data sent to that page

0

精彩评论

暂无评论...
验证码 换一张
取 消