jQuery Mobile 框架和非常大的数据列表
我们正在为我们的一个项目使用 jQuery mobile,但我们遇到了两难的境地。其中一个页面需要显示一个非常大的视频游戏列表,用户应该能够通过键入视频游戏名称进行搜索。请参阅(http://jquerymobile.com/demos/1.0.1/docs/lists/lists-search.html)。
我们如何实现一个最佳解决方案,让用户可以灵活地输入视频游戏名称,并且仍然不会出现性能问题。可能是顺序加载等。还有人知道有什么插件吗?
谢谢
We are using jQuery mobile for one of our projects and we are hitting a dilemma. One of the pages needs to show a very large list of video games that the user should be able to search by typing the video game name. Please see (http://jquerymobile.com/demos/1.0.1/docs/lists/lists-search.html).
How can we implement an optimal solution that gives user the flexibility of typing in the videogame name and still not have performance issues. Possibly sequential loading etc. Also anyone know of any plugins?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
延迟加载可能是一种选择。 jQuery Mobile 的内置列表视图搜索仅搜索列表中当前的项目。这意味着您可能必须自己推出。
您也可以考虑拆分功能。搜索通过 AJAX 运行,而用户还可以滚动列表,该列表会在向下滚动页面时加载其他项目。
Lazy loading might be an option. jQuery Mobile's built in listview search only searches items currently in the list. That means you're probably going to have to roll your own.
You could consider splitting the functionality as well. Search runs via AJAX, while the user can also scroll through a list which loads additional items as they scroll down the page.