I want to a generate a form in JavaScript and append the form, but it does not work:
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);
SO的问题: JQuery创建一个表单并以编程方式向其中添加元素或使用jFormer
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.