Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
GwanHooPark committed Jun 28, 2020
1 parent a72fd3f commit bf0b6bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RUTROLL/views/main.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
$.ajax({
method : 'GET',
async : false,
url : 'http://localhost:3000/api/search/'+name
url : 'api/search/'+name
}).done(function(result){
_this.renderData(result);
});
}
function renderData(data) {
console.log(data)
$('#resultData').html('');
$.each(data,function(){
var liEl = "<li>" + this + "</li>";
$("#resultData").append(liEl);
Expand Down

0 comments on commit bf0b6bc

Please sign in to comment.