javascript - How to use redux to manage user refresh on WeChat official account webpage?
仅有的幸福
仅有的幸福 2017-06-26 10:53:53
0
1
872

The HTML page of the WeChat official account uses redux to save data, but if the page is refreshed, the saved data will inevitably be cleared. So the question is, how to save this data? How to save this data elegantly? Can the refreshed interface still retain its state?

仅有的幸福
仅有的幸福

reply all(1)
漂亮男人

The data is stored in the memory, and js will be re-executed after refreshing. Redux data will be lost. It can be stored in localStorage or indexedDB or request ajax to get the data from the server and assign it to redux.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!