DWQA QuestionsCategory: ProgramHow is it possible to close the data in the browser's completed form?
Little brother asked 1 month ago

Like Sina Weibo, if the content of the microblog is not published, even if the browser is closed, the next time it opens, the form still keeps the content of the last time it was written. Where is the content saved and how can it be realized?How is it possible to close the data in the browser's completed form?

Gao Yang Sunny replied 1 month ago

HTML5 Local Storage Local Storagehttp://www.cnblogs.com/xiaowei0705/ar

2 Answers
Xiaohao Butian answered 1 month ago

Use user data behavior under IE6/7, other browsers use local Storage, Cookie can also be used, but the restrictions are slightly more.UserData Behavior Referencehttp://msdn.microsoft.com/en-us/libra…

xhinking answered 1 month ago

Sina Weibo uses HTML5 Local Storage.请输入图片描述The user enters the data and stores it in the Local Storage. After refreshing, the data is reloaded into the input box.