📜  显示表单数据值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:46.206000             🧑  作者: Mango

代码示例1
// Create a test FormData object
var formData = new FormData();
formData.append('key1', 'value1');
formData.append('key2', 'value2');

// Display the values
for (var value of formData.values()) {
   console.log(value);
}