I found a small problem when I was doing the program some time ago. When I was writing the background management Form form to upload pictures, when I submitted it using the Form form, it jumped out and submitted it directly. The page that returns the value and the original page is refreshed. The following editor will share with you the example code of Ajax submission of Form form and file upload
a few days ago , found some minor problems. When I was writing the background management page, I needed to upload a picture. So I used a very common Form to upload a Json string and image files;
Form form to upload images, you only need to add enctype = 'multipart/form-data' in the