質問編集履歴

3

タグ追加 エラーコード訂正

2019/02/01 05:40

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,9 @@
12
12
 
13
13
  ```
14
14
 
15
- TypeError: Cannot read property 'addEventListener' of null
15
+ Uncaught ReferenceError: Json is not defined
16
+
17
+ at FileReader.reader.onload
16
18
 
17
19
  ```
18
20
 

2

使用json

2019/02/01 05:40

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -76,6 +76,22 @@
76
76
 
77
77
  </style>
78
78
 
79
+ ```
80
+
81
+ 使用したjson
82
+
83
+ ```json
84
+
85
+ [
86
+
87
+ {"title":"A","body":"a"},
88
+
89
+ {"title":"B","body":"b"},
90
+
91
+ {"title":"C","body":"c"}
92
+
93
+ ]
94
+
79
95
 
80
96
 
81
97
  ```

1

ソース修正

2019/02/01 05:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -60,7 +60,7 @@
60
60
 
61
61
  }
62
62
 
63
- reader.readAsText
63
+ reader.readAsText(file)
64
64
 
65
65
  }
66
66