const formData = new FormData();
formData.append(“user”, '用脑袋行走的人');
formData.append('age', 18);
//第一种
for (var value of formData.values()) {
console.log(value);
}
//第二种
for (var [a, b] of formData.entries()) {
console.log(a, b);
}
//第三种
for (var key of formData.keys()) {
console.log(key, formData.get(key));
}