Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我的 Sencha 触摸应用程序中添加一个删除图标,单击它时应该会显示一条确认消息。这是我需要的。但是,它被带到了一个新页面。有没有办法解决这个问题?
你为什么写xtype: 'formpanel'?它应该是xtype:'button'即时的。这对我有用:
xtype: 'formpanel'
xtype:'button'
{ title: 'Delete', iconCls: 'delete', cls: 'home', xtype:'button' , handler: function() { var del=confirm('Are you sure'); if(del) { console.log('confirm'); } ; }, },