dongzang7182 2015-06-30 14:06
浏览 19
已采纳

结果列表文本输入过滤器

I have a list of contacts, pulled from a MySQL database and displayed using PHP/HTML/CSS etc.

I'm looking to create a filter so as the user types in a textbox it filters the contact list down to those that match the inputted text. Something like this http://kilianvalkhof.com/uploads/listfilter/

Now, that's fine for a shorter fixed list. What would be the best approach to do the same sort of thing, but for a contacts list of around the 10,000 mark, and results per page of 0, 50, or 100.

I could use jQuery DIV requery/reload on keyup - it would work, I just wanted to know if there is a more efficient way of doing it? The perfect working example is Apple iCloud website Contacts Page.

  • 写回答

1条回答 默认 最新

  • duanlin6989 2015-06-30 14:09
    关注

    For this kind of functionality look into AngularJS.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献