In the code (I use MVC model if it matters), to get a specific elements, I use refs.
refs: [
{
ref: 'window',
selector: 'windowName'
},
{
ref: 'windowButton',
selector: 'windowName button[name=buttonName]'
},
{
ref: 'windowCombo',
selector: 'windowName combo[name=comboName]'
}
]
Is this the right choice to get an elements? Or I have to use getCmp() or something else?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…