如果我聲明一個對象如下:我需要更好地理解JavaScript的基本性質對象
var foo.bar = new Object;
這是否自動使富的對象?如果沒有,我想這兩個foo和foo.bar是對象,我需要使用下面的代碼:
var foo = new Object;
var foo.bar = new Object;
如果我創建如上這兩個對象,是有他們之間或父/子關係他們是完全獨立的實體嗎?
對於我的問題的簡單性,我表示歉意,但我正在努力更全面地理解數據的各種構造方式。
感謝所有爲你的答案,尤其是對於正確的文字符號來使用。 – WyoBuckeye 2012-02-15 16:06:17