我有一個對象wihtin一個功能性,我不知道如何訪問對象的屬性,改變他們,給它添加或興田對象刪除:我需要幫助的訪問對象的性質在
function Example(test) {
test={};
test.firstTry='One';
test.secondTry='Two';
console.log(test);
}
x=new Example("I don't know where to go from here, I want to access test.firstTry and test.secondTry");
你不能訪問這些功能之外,它們是未知的外部世界 –
謝謝大家,我沒有忘記「這個」,我在實例的實例也忘了「[...]」。它應該是x = new示例(['...']); – davidLeak