浏览代码

add log test

ming 3 年之前
父节点
当前提交
c64e2acdc7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      index2.html

+ 2 - 1
index2.html

@@ -134,7 +134,8 @@
     }
     }
     function load_data(id){
     function load_data(id){
       var title = document.getElementById("title")
       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;
       var step;
       for (step = 1; step <= 10; step++) {
       for (step = 1; step <= 10; step++) {
         $(".txtsrc"+step).val() = obj.text_content[step-1]
         $(".txtsrc"+step).val() = obj.text_content[step-1]