如何在另一个字典中获取字典变量?

时间:2019-01-25 16:04:50

标签: javascript

如何在另一个字典中找到dict变量?

如果您不明白,那么:

{
    variable: "I need this variable",
    retrive: function(){
        return this.variable // I can reach this information with "this."
    },
    another_dict: {
        retrive: this.variable // I can't do it here is not find the variable and I need this information
    }
}

0 个答案:

没有答案