我认为这个问题很容易解决,但我无法自己解决。
我正在使用colorbox
简单的ajax
请求从服务器加载一些 html,如下所示:
$.colorbox({
href: false,
scrolling:false,
html: function(){
$.post("image/render_image", {data: cardData},
function(response){
alert("I got response!");
}, "json"
);
return "I got displayed before response got back :/";
}
});
现在我正在发送发布请求,只有在收到回复后,我才想返回一些回复,我html
该colorbox
怎么做?