Save data offline before post

后端 未结 3 1646
臣服心动
臣服心动 2021-01-21 15:26

i want to save the post data to user pc before posting just incase of bad internet connection where it happens a lot in my area.

most of the time users write article , a

3条回答
  •  醉梦人生
    2021-01-21 15:54

    HTML5 includes a spec called LocalStorage, which allows you to store some information in the clients browser like cookies has in the past. This method is great because cookies are tiny in size and very insecure.

    There is a nice article about it here: http://diveintohtml5.info/storage.html

提交回复
热议问题