var a ={'key1':{key12:value12,key13:value13},'key2':{key22:value22}} 如何追加元素
var a ={'key1':{key12:value12,key13:value13},'key2':{key22:value22}} 如何追加元素
[解决办法]
prototype这个不可以么?
[解决办法]
<SCRIPT LANGUAGE="JavaScript">
<!--
var a ={'key1':{'key12':'value12','key13':'value13'},'key2':{'key22':'value22'}}
a.key3={'key31':'31','key32':'32'};
alert(a.key3.key31);
//-->
</SCRIPT>