var formData = new FormData();
formData.append('xxx', xxxxxx);
formData.append('type', $("#1").val());
...
$.ajax({
url: '/test',
data: formData,
processData: false,
contentType: false,
type: 'POST',
success: function(data){
alert(data);
}
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…