我如何可以加载成功JSON响应之后的图像?加载图像响应
jQuery的
$.post('@Url.Action("Upload", "Camera")', {
type: 'data',
image: canvas.toDataURL("image/png")
}, function (result) {
if(result.success) {
alert('The image was successfully sent to the server for processing');
var $image = $("<img src='~/temp/" + @ViewData["CaputredImage"] + "'/>");
$image.live("load", function() {
$("#imageContainer").append(this);
});
}
});
图像容器
<div id="imageContainer"></div>
不工作!事情是我不认为'负载'会在json响应后在这里工作 – 2013-03-10 06:26:02
@JackManson:当然会。一个与另一个无关。必须有其他事情正在进行。 – 2013-03-10 14:11:49