如何为AutoSuggest加载数据
我正在构建一个笔记应用程序,您可以在其中添加标签。当用户开始添加新标签时,我想从其以前保存的所有标签中自动使用标签。 我该如何实施? 我是否请求用户的所有先前保存的注释,获取标签并将其与用户键入的内容进行比较,还是在用户添加注释时维护标签集合? 什么是正确的方法,我们如何决定?
I am building a note-taking app where you can add tags to notes. When a user starts adding a new tag, I want to autosuggest the tag from all of its previous saved tags.
How do I implement that?
Do I request for the user's every previously saved notes, get tags and compare them with what the user is typing or do I maintain a collection of tags when the user is adding a note?
What is the correct approach and how do we decide?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有 2 个选项:
所有标签,并用它进行搜索。
You have 2 options:
all the tags, and search with it.