2
我不知道它的可能与否,但我在我的服务器上有一个图像,我想通过$ .ajax函数下载并显示在我的jquery移动应用程序中。这里是我使用的代码:
$.ajax({
type: "GET",
url: $url,
dataType: "jpeg",
async: true,
timeout: 90000,
success: function($data)
{
console.log("success");
},
error: function()
{
console.log("failure");
}
});
我得到一个错误,不知道这是否是正确的做法