我在 Sencha Touch 2 中遇到问题。我想在单击另一个图像时隐藏一个图像。我怎样才能做到这一点?
items: [{
xtype: 'panel',
html: '<img class="logo0" src="http://localhost/PlanningPoker/resources/images/carte0.png" /> '+
'<img class="logo1" src="http://localhost/PlanningPoker/resources/images/carte1.png" /> ',
listeners: [{
element: 'element',
delegate: 'img.logo0',
event: 'tap',
fn: function() {
console.log('One!');
}
},
{
element: 'element',
delegate: 'img.logo1',
event: 'tap',
fn:function() {
console.log('Two!');
}
}]
}]