myForm
使用base64动态生成的图像如下:
const image = document.createElement("img")
image.src = "data:image/jpeg;base64," + response[i].base64Code
image.style.width = 300;
image.style.height = 300;
imageDiv.appendChild(image)
提交表单时,请附加图片:
myForm.append('myImage', image) // How to append the image source to the form?
myForm.submit()