浏览代码

add log test

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

+ 1 - 1
index2.html

@@ -133,7 +133,7 @@
       document.getElementById("mySidenav").style.width = "0";
     }
     function load_data(id){
-      var filtered = collection.filter(function (item) {
+      var filtered = loaded_data.filter(function (item) {
         return item.id === id;
       });
       alert(filtered.title);