0
我有回來爲這樣的服務器響應的陣列內:餡的陣列到一個對象,它是匹配的ID
Array[2]
0:Object
user: "Howard",
id:0
1:Object
user: "Robin",
id:1,
myArray: ["mary","john","gary"] // I want to add in here.
]
我然後有一個我自己創建的陣列。我想添加這個數組到=== 1就像我上面的例子那樣的id。我只能想象我必須使用匹配id的對象的鍵=== 1
myArray=["mary","john","gary"]
該ID是唯一的:) – pcproff