我想在JavaScript中生成一个表单并附加表单,但它不起作用:
JS
var formData = new FormData();
formData.append("part_num", "123ABC");
formData.append("part_price", 7.95);
formData.append("part_image", somefile)
document.getElementById("form").append(formaData);
答案 0 :(得分:0)
答案 1 :(得分:0)