如何从列表中进行过滤 [英] How to do filtration from list

查看:61
本文介绍了如何从列表中进行过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要我的应用程序一些帮助,在我的应用程序中,我从Web服务获取数据列表(例如具有重复条目数的名称).当应用程序启动时,将显示所有名称.
在顶部有一个文本字段,我在其中输入名称(用于获取信息),因此,如果我编写ex naveen,则仅显示列表中的所有naveen.


你能帮我吗?

谢谢

Hi
i need some help for my app ,in my app i get list of data from web service(example Name which have number of duplicate entry ).when application launch it show all name.
there is one text field in top where i write name (for getting information)so if i write ex naveen then it show all naveen from the list only.


Can you please help me.

Thanks

推荐答案



您需要创建一个将输入作为列表和搜索字符串的函数.该函数将从javascript返回过滤的列表.

希望它对您有用.
Hi,

You need to crate one function that takes input as the list and search string. the function will return the filtered list from the javascript.

Hope it works for you.


这篇关于如何从列表中进行过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆