[英]How to save the current HTML file with JS
I write value in inputs and after clicking to a button it shows me in the table.我在输入中写入值,然后单击一个按钮,它会在表格中显示我。 But how I can save the current html file with JavaScript after adding new values to the table???但是在向表中添加新值后,如何使用 JavaScript 保存当前的 html 文件??? Pls help请帮忙
You need to store them in a database.您需要将它们存储在数据库中。
You need to build a backend to handle that.您需要构建一个后端来处理它。
and then fetch data from the backend to your html / js project.然后从后端获取数据到您的 html / js 项目。
Learn about Http requests to do these.了解有关执行这些操作的 Http 请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.