时间:2021-07-01 10:21:17 帮助过:5人阅读
var formElement = document.getElementById("myFormElement");
formData = new FormData(formElement);
formData.append("number", 123);
oReq.send(formData);
那么php怎么获取到number123
你还可以在已有表单数据的基础上,继续添加新的键值对,如下:
var formElement = document.getElementById("myFormElement");
formData = new FormData(formElement);
formData.append("number", 123);
oReq.send(formData);
那么php怎么获取到number123