소스 검색

add log test

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

+ 2 - 1
index2.html

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