소스 검색

add log test

ming 4 년 전
부모
커밋
5d64dd5c76
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      index2.html

+ 1 - 3
index2.html

@@ -133,10 +133,8 @@
       document.getElementById("mySidenav").style.width = "0";
     }
     function load_data(id){
-      obj = loaded_data.find(item => item.id === id)
-      console.log(obj)
       var title = document.getElementById("title")
-      title.innerHTML = obj.name;
+      title.innerHTML = loaded_data.find(item => item.id === id).name
       var step;
       for (step = 1; step <= 10; step++) {
         $(".txtsrc"+step).val() = obj.text_content[step-1]