标签是否可以保存在文本框列表输入中?

发布于 2024-12-19 14:42:51 字数 290 浏览 2 评论 0原文

请查看此链接:http://davidwalsh.name/dw-content/textboxlist.php

正如您所看到的,它是一个文本框列表输入。

如果您输入标签然后刷新页面,该标签就会消失。

是否可以制作相同的文本框列表输入,但保存每个标签,以便刷新页面时它仍然存在?

我一直在努力寻找答案,但我不确定我在寻找什么。

Please check out this link: http://davidwalsh.name/dw-content/textboxlist.php

As you can see its a textbox list input.

If you enter a tag but then refresh the page the tag disappears.

Is it possible to make the same textbox list input but have each tag saved so when the page is refreshed its still there?

I have been trying to find an answer but Im unsure of what I am looking for.

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

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

发布评论

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

评论(1

漆黑的白昼 2024-12-26 14:42:51

您可以使用...

  • JavaScript cookie
  • HTML5 localStorage
  • AJAX 每次发送当前标签的完整列表到服务器更新了,并且然后让服务器...

    • 将标签存储在数据库中
    • 设置 cookie
    • 启动/更新会话
  • Any每当文本区域更新时,将表单提交到服务器,从上面选择,然后重新加载页面

You could use...

  • JavaScript cookies
  • HTML5 localStorage
  • AJAX to send a complete list of the current tags to the server every time they're updated, and then have the server...

    • store the tags in a database
    • set a cookie
    • start/update a session
  • Any time the textarea is updated, submit the form to the server, choose from the above, and reload the page

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