ajaxFileUpload 返回的数据报错

$.ajaxFileUpload({
url : '/updateMallGoods',
data : {
"goodsName":goodsName,
"proDesc":proDesc,
"specArray":JSON.stringify(myArray),
"newspecArray":JSON.stringify(newmyArray),
"goodsId":goodsId
},
type : "POST",
secureuri : false, //是否启用安全提交,默认为false
fileElementId :filearray, //文件选择框的id属性['file-1','file-2','file-3','file-4','file-5','file-6']
dataType : "json",
success : function(msg) {
var json = $.parseJSON(msg);
alert(json.message);
},error : function(msg){
console.log("xxxx");
console.log(msg);
}
})

posted @ 2017-12-26 16:34  咸蛋超人、  阅读(1061)  评论(0编辑  收藏  举报