オブジェクト参照に来る何かが欠けている可能性があると思います。以下の場合、thisテストオブジェクトを参照していますか?bそうでない場合、最終的にどのように宣言できtest.a = test.bますか?
test = {
a: 1,
b: this.a,
check : function(){
console.log(test.a); // returns 1
console.log(test.b); // returns undefined
}
};
test.check();
どうもありがとう