This article mainly introduces the real-time uploading of images by Html5 FileReader. Because the project only requires it to be above ie9, it is not written for ie8. If you need it, you can refer to the preview below. It is still different from ie8. However, I remember that it seems that ie8 also uses the function of fiter, because the project only requires it to be above ie9, so it is not written for ie8.
Copy the code