Storing the Window Object in local storage

后端 未结 1 2027
渐次进展
渐次进展 2021-01-23 13:41

I need the ability to persist the window object. I tried to stringify the window object but I received and error when trying to convert the window object to JSON. \"Converting

相关标签:
1条回答
  • 2021-01-23 14:08

    You can't persist a window object in local storage.

    You can only store data in the form of strings in local storage, and there is no way to turn the window object into a string so that you can recreate the same window object.

    0 讨论(0)
提交回复
热议问题