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

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -