请在浏览器中使用JS列表列表&没有数据库

发布于 2025-02-08 12:35:23 字数 169 浏览 1 评论 0原文

标题所描述的几乎。我需要为工作面试构建一个TODO应用程序,但是必须在浏览器中禁用JS,而不是使用数据库。

任何JS都必须在服务器端完成。 我对节点/express有一个初学者的掌握,并且知道如何使用HTML文件,但是我不确定如何使用没有JS DOM操作的用户输入来更新HTML。解决这个问题的合理方法是什么?

Pretty much what the title describes. I need to build a todo app for a job interview, but js must be disabled in the browser, and not using a database.

Any js must be done on the server side.
I have a beginner grasp on node/express and know how to serve html files, but I’m not sure how to go about updating the html with user input without js Dom manipulation. What would be a reasonable approach to this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看海 2025-02-15 12:35:23

我想您可以在表单的帮助下将数据发送到服务器(因此不需要客户端js),并将服务器从服务器提供静态HTML页面到客户端。

I suppose you could send data to the server with the help of forms (so no client side js required) and serve static html pages from the server to the client.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文