How can I access properties inside a symbol type object in JavaScript?

前端 未结 0 1488
盖世英雄少女心
盖世英雄少女心 2020-11-28 17:51
const classRomm = {
    [Symbol(\'Mia\')]: { grade: 50, gender: \'female\' },
    [Symbol(\'Gilbert\')]: {grade: 80, gender: \'male\'},
};

let persons =  Object.get         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题