$.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);
}
})