teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

jsonte.jsの中身を追記しました。

2022/07/12 13:01

投稿

0629happy
0629happy

スコア5

title CHANGED
File without changes
body CHANGED
@@ -21,11 +21,17 @@
21
21
 
22
22
  jsonte.jsの中身はこういう感じです。
23
23
 
24
- jsonte ={"teacher": [{
24
+ jsonte ={"teacher": [
25
+   {
25
26
  "ID": "T1001",
26
27
  "name": "山田太郎",
27
28
  "tag": "blue"
28
29
  },
30
+  {
31
+ "ID": "T1002",
32
+ "name": "山田花子",
33
+ "tag": "red"
34
+ },
29
35
  ....
30
36
  ..
31
37
  変数 'needId' に "T1001のデータ" を入れるにはどうしたらいいのでしょうか。