From bf0b6bcb3a0d9853b4e47b0a2b258f56de86f21d Mon Sep 17 00:00:00 2001 From: hooho Date: Sun, 28 Jun 2020 21:34:25 +0900 Subject: [PATCH] _ --- RUTROLL/views/main.ejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RUTROLL/views/main.ejs b/RUTROLL/views/main.ejs index 4bd1bde..f3142fe 100644 --- a/RUTROLL/views/main.ejs +++ b/RUTROLL/views/main.ejs @@ -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 = "
  • " + this + "
  • "; $("#resultData").append(liEl);