因此,我将图像数据附加到formdata对象中。但是我一直在犯错误:The laptop image field is required. (拼写'laptop_image‘是正确的)。const form = document.querySelector('form'); const formData= new FormData(form);
formDa
我尝试在页面卸载/visibilityChange上使用ajax请求。我发现navigator.sendBeacon是最好的选择。我尝试在WordPress中使用它,请求正在发送,但我收到'POST 400 bad request‘错误。//array of urls action: 'delete_on_unload',
source_urls: JSON.stringifyd
uploadPhoto').on("change", function (event) {
var data = new FormDatadata.image, data.content); // this outputs 'undefined undefined' in the consoleFormData{append: functi