Developers
Json Search
오페투오소
2017. 2. 17. 14:41
$.each(data, function(i, item) { // search the results using regular expression for the query if (item.name.search(new RegExp(/''+q+''/i)) != -1) { $('<li />').html(item.name + '<br>' + item.details + '<br>').appendTo('#results'); } });