Browse Source

add log test

ming 3 years ago
parent
commit
c64e2acdc7
1 changed files with 2 additions and 1 deletions
  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]