Need content type for FormData
问题 I am sending formData or Json to server. So i need contentType for formData. Please don't give false as contentType value. formdata = new FormData(form[0]); $.ajax({ url: url, data: formdata? formdata :$(#User).serialize(), type: 'post', cache: false, contentType: "json", processData: false, beforeSend: function () { $(options.createOrUpdateRelationship).attr('disabled', 'disabled'); var target = $(options.setupSubContainer); $("body").append(options.fadeoutDiv); options.spinner.spin(target[0