简体   繁体   English

在JavaScript中实现“保存”功能以形成表格的最佳方法是什么?

[英]What could be the best way to implement 'save' feature to form in javascript?

I have the form which i can submit and working fine. 我有可以提交并可以正常工作的表格。 I want to add the feature where user can save the data and later submit. 我想添加功能,用户可以在其中保存数据并稍后提交。

Shall i save the data in file which user filled in the form? 我应该将数据保存在哪个用户填写表格的文件中吗? Any better approach? 有更好的方法吗?

您可以将数据存储在本地存储中,然后发送到服务器进行存储。当用户不在表单上时,它可以保留值或数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 实施文本大小可访问性功能的最佳方法是什么? - What would be the best way to implement a text size accessibility feature? 实施自动建议功能的最佳方法? - Best way to implement auto suggestions feature? 使用 javascript/jQuery 实现多路切换的最佳方法是什么? - What is the best way to implement multiway toggle using javascript/jQuery? 将 HTML 表单保存到 PDF 的最佳方法是什么 - 包括输入的值? - What is the best way to save an HTML form to PDF - including the values entered? 在javascript中实现队列的最佳方法? - Best way to implement a queue in javascript? 在 Javascript 上实现事件的最佳方法 - Best way to implement Events on Javascript 将 django 表单数据传递给 javascript ajax 调用的最佳方法是什么? - What is the best way to pass django form data to javascript ajax call? 通过javascript跟踪表单中的更改的最佳方法是什么? - What is the best way to track changes in a form via javascript? 在提交之前在javascript中检查django表单错误的最佳方法是什么? - what is the best way to check django form errors in javascript before submitting? 在 React 应用程序中使用访问令牌实现身份验证的最佳方法是什么? - What could be the best way to implement authentication using access token in React app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM