Use AJAX to display php generated image

前端 未结 6 2039
攒了一身酷
攒了一身酷 2021-01-25 23:44

I have a php script that randomly generates an image. Something like this:



        
6条回答
  •  死守一世寂寞
    2021-01-26 00:13

    To use the image inside the src attribute you need to provide a valid URI, for example a data-URI:

    
    

    I once compiled a more detailed answer for a similar question.

提交回复
热议问题