浏览代码

add log test

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

+ 1 - 1
index2.html

@@ -132,7 +132,7 @@
       var title = document.getElementById("title")
       tid = event.srcElement.id
       console.log(tid);
-      title.innerHTML = loaded_data.find(item => item.id == tid).name
+      $(".title_new").val(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])