formData.js var formdata = new FormData();formdata.append( "name", "贾维斯");function toFormData(obj)var form = new FormData();for (var x in obj) {form.append(x, obj[x]);}return form;}
var formdata = new FormData(); formdata.append( "name", "贾维斯"); function toFormData(obj) var form = new FormData(); for (var x in obj) { form.append(x, obj[x]); } return form; }