How to set base64 svg string to image tag src?
问题 I have a question. In the below code, img.onload is not firing when I set base64 as src. But when I set an image directly to src, img.onload gets fired and console.log returns "image is loaded". Can you please explain what is the cause for img.onload gets fired only when it is an image not base64 string. Also, how to make base64 string fire img.onload. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </head> <body style="background-color