var array = { 'one' : 'first','two' : 'second','three' : 'third' };
如何在其中添加新的对
array['newpair'] = 'new value';
要么
array.newpair = 'newvalue';
This is quite a decent read on the subject.