当前位置 : 主页 > 网络编程 > JavaScript >

formData.js

来源:互联网 收集:自由互联 发布时间:2021-06-28
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;}
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;
}
网友评论