javascript - Adding values to object in js -


so, have following js object structure:

enter image description here

i trying add value this, example, "234324" after "ewerewr".

i tried obj["d7vi"] = new_value;

but gets rid of previous values.

any help?

make it

obj["d7vi"].push(newvalue); 

you need add array rather replace existing values.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -