-2
は、私は非常に良いJSバックグラウンドを持っていますが、単純なクラスのオブジェクト機能がNode.jsのコール機能は
function functions() {
function test() {
console.log("function ok");
function test2() {
console.log("function inside function is ok");
}
return {
test2 : test2
};
}
return {
test : test
};
}
var test_function = new functions();
functions.test.test2();
を呼び出していない理由を私はエラーを取得する私はundersandいけない をNode.jsのために新しいです
TypeError: Cannot read property 'test2' of undefined
おかげ