0

我有一个像下面这样的json

[
    {"name":"mynewname", "id" : "t2", "location" : "India"},
    {"name":"mynewname1", "id" : "t21", "location" : "China"},    
]

我有很多像上面这样的json数据..

我需要上面textboxSearch数据..

4

1 回答 1

4

You can try this:

http://jsfiddle.net/geektantra/DsF7J/3/

NOTE: I am using Regular expressions for doing a full-text search through the JSON. This could affect performance when the size of your JSON data increases.

于 2012-08-08T10:21:54.637 回答