Home >Backend Development >PHP Tutorial >javascript - Problems with local storage data initialization page! ! !
I stored some picture data in localStorage
Then, when the page is initialized, I need to fill the quantity in the data between the plus and minus signs on the page. How to solve this problem? What I want is to use jquery selector to select the corresponding data-id attribute and then fill it in. Is this advisable? Is there a better way?
中...]
I stored some picture data in localStorage
Then, when the page is initialized, I need to fill the quantity in the data between the plus and minus signs on the page. How to solve this problem? What I want is to use jquery selector to select the corresponding data-id attribute and then fill it in. Is this advisable? Is there a better way?
中...]
I think this method works!
What can be done is that it would be better if the objects in localStorage can be processed in this way
<code>{ 20160611:{name:"test"...}, 20160612:{name:"test"...}, 20160613:{name:"test"...} } </code>
The entire object is placed in a key
First of all, thank you for the invitation. You can do this
Thanks for the invitation
Your method is feasible
Thank you for the invitation. I have never done it in practice. In principle, it should be possible. You will know after you try it