Answer the question
In order to leave comments, you need to log in
How to get the desired key from a large object?
how to display in innerHtml or in console.log, for example, from the mouse the enemy key, tell me please =D
{
"Мышь": {
"Враг": 10234,
"Популяция":400023143 ,
"Вредительство": 8000 ,
"Польза": 0 ,
"символ": "=::="
},
"Кот": {
"Враг": 10235,
"Популяция":223123123 ,
"Вредительство": 1000 ,
"Польза": 1 ,
"символ": ":3"
},
"Собака": {
"Враг": 10235,
"Популяция":242563788 ,
"Вредительство": 1000 ,
"Польза": 1 ,
"символ": "[email protected]="
}
}
Answer the question
In order to leave comments, you need to log in
o["Мышь"]["Враг"];
// или
o.Мышь.Враг;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question