87,907
社区成员
发帖
与我相关
我的任务
分享
$.ajaxFileUpload({
type: "POST",
fileElementId: 'detailfile',//file控件id
secureuri: false, //是否需要安全协议,一般设置为false
url: 'http://192.168.1.92:1234/qx/fileload.r?j={"action":"fileUpload"}',
// contentType: "multipart/form-data",
dataType: 'json' , //返回值类型,一般设置为json、application/json
success : function(data, status) {
console.info("success status: "+status + " data: "+JSON.stringify(data));
},
error: function(data, status, e) {
console.info("error status: "+status + " data: "+ JSON.stringify(data) + " e: "+ e );
cAlertBox('warnmsg', '导入失败!',1000);
}
})