How to store and retrieve image to localStorage?

前端 未结 2 981
余生分开走
余生分开走 2020-12-07 18:22

Thought I had this, but no. The goal: snap a photo (insurance card), save it locally, and retrieve it later.

// Get a reference to the image element
var elep         


        
2条回答
  •  太阳男子
    2020-12-07 18:49

    Here the complete solution using File Api

    
        
        
        
        
        
        
        
    
    

提交回复
热议问题