标签是否可以保存在文本框列表输入中?
请查看此链接: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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用...
localStorage
AJAX 每次发送当前标签的完整列表到服务器更新了,并且然后让服务器...
Any每当文本区域更新时,将表单提交到服务器,从上面选择,然后重新加载页面
You could use...
localStorage
AJAX to send a complete list of the current tags to the server every time they're updated, and then have the server...
Any time the textarea is updated, submit the form to the server, choose from the above, and reload the page