$.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'); } });
'Developers' 카테고리의 다른 글
HashMap to JSON (0) | 2017.03.20 |
---|---|
스프링 관련 홈페이지 (0) | 2017.03.14 |
스프링 jsonView 설정 (0) | 2017.01.24 |
자바스크립트 Replace를 Replace All로 사용 (정규식) (1) | 2017.01.17 |
파일 확장자 체크 (0) | 2017.01.17 |
댓글