使用jQuery的Ajax方法作为BLOB检索图像
handler = (data,status) ->
fd = new FormData
fd.append("file", new Blob([data], { "type" : "image/png" }))
jQuery.ajax {
url: target_url,
data: fd,
processData: false,
contentType: "multipart/form-data",
type: "POST",
complete: (xhr,status) ->
console.log xhr.status
console.log xhr.statusCode
console.log xhr.responseText }jQuery.get(image_source_url, null, handler)
慕尼黑5688855
皈依舞
互换的青春
随时随地看视频慕课网APP
相关分类