Skip to content

Commit

Permalink
ajax 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
GwanHooPark committed Jun 28, 2020
1 parent 2bff9ce commit a72fd3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RUTROLL/views/main.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
}
function renderData(data) {
console.log(data)
$.each(data,function(){
var liEl = "<li>" + this + "</li>";
$("#resultData").append(liEl);
});
}
$(document).ready(function(){
setEvent();
Expand All @@ -45,6 +49,7 @@
<button id="searchButton" class="btn btn-primary" type="button">click!</button>
</span>
</div>
<ul id="resultData" style="margin-top:100px"></ul>
</div>
</body>
</html>

0 comments on commit a72fd3f

Please sign in to comment.