소스 검색

add log test

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

+ 3 - 3
index2.html

@@ -136,14 +136,14 @@
       var title = document.getElementById("title")
       tid = event.srcElement.id
       console.log(tid);
-      title.innerHTML = loaded_data.find(item => item.id === tid).name
+      title.innerHTML = loaded_data.find(item => item.id == tid).name
       var step;
       for (step = 1; step <= 10; step++) {
-        $(".txtsrc"+step).val(loaded_data.find(item => item.id === tid).text_content[step-1]) 
+        $(".txtsrc"+step).val(loaded_data.find(item => item.id == tid).text_content[step-1]) 
       }
       var step2;
       for (step2 = 1; step2 <= 10; step2++) {
-        $(".imgsrc"+step2).val(loaded_data.find(item => item.id === tid).image_urls[step-1]) 
+        $(".imgsrc"+step2).val(loaded_data.find(item => item.id == tid).image_urls[step-1]) 
       }
       
     }