use ajax to send a request to the background. The base64 image is returned in the background, but the console prints out a pile of garbled codes. How to parse it? you want to put the returned base64 in the src of img directly
.
ajax:
how should this be parsed when the front end receives this