为什么 FormData 是空的?
Why is FormData empty?
我关注了this guide on MDN。
var formData = new FormData();
formData.append("username", "Groucho");
formData.append("accountnum", 123456);
console.log(formData);
为什么 formData
是空的?
他们是访问 FormData 的方法
var formData = new FormData();
formData.append("username", "Groucho");
formData.append("accountnum", 123456);
console.log(formData.get("username"));
console.log(formData.get("accountnum"));
我关注了this guide on MDN。
var formData = new FormData();
formData.append("username", "Groucho");
formData.append("accountnum", 123456);
console.log(formData);
为什么 formData
是空的?
他们是访问 FormData 的方法
var formData = new FormData();
formData.append("username", "Groucho");
formData.append("accountnum", 123456);
console.log(formData.get("username"));
console.log(formData.get("accountnum"));