var test = {
one: {},
two: {},
};
test['two'].parent = test['one'];
テストに必要なもの:
test = {
one: {},
two: { parent: {}, }
それが実際に持っているもの:
test = {
parent: {},
two: { parent: {}, }
test.one が test.parent になるのはなぜですか?
test.two.parent が test.one への参照を保持するようにします。どうすればいいですか?