$.ajaxFileUpload({
url: "/FlowerIdentification/uploadImg",
data: img, //这是我取出来的img对象
type: "post",
fileElementId: "file", //文件上传域的ID,这里是input的ID,而不是img的
dataType: 'application/json', //返回值类型 一般设置为json
contentType: "application/x-www-form-urlencoded; charset=utf-8",
success: function(data) {
if(data.status==00){
}else{
}
}
});
评论3
最新资源