So basically, I am trying to save an image into localStorage
, and then load that same image on the next page.
I came across this great example: http://jsfiddle.net/8V9w6/
Although, I have absolutely no idea how this works since I have only ever used localStorage for extremely small strings.
I have an image that gets changed via a file upload handled by jQuery
<img id="bannerImg" src="images/image-placeholder.jpg" alt="Banner Image" style="display:none;" width="100%" height="200px" />
The jsfiddle
link I added above allows multiple file upload, and that is definitely something I would not like to have.
What I need to know is what should I be placing on the first page to save the image, and what should I be placing on the second page to load the image?
I have a save
button that will be processing everything.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…