当我点击项目列表内的按钮时停止 itemtap 事件,如果我按下按钮外的任何地方则保留 itemtap 事件

Stop the itemtap event when I tap in a button which is inside the item list, and keep the itemtap event if I press anywhere outside the button

如果我按下拒绝按钮,它应该会从列表中删除该项目,但如果我按下按钮周围的区域,我应该会看到办公室详细信息

您必须在按钮点击处理程序中包含 event.stopEvent()。这就对了。 :)

declineRequestButtonTap: function (self,event) {
  console.log('decline button tap functionality'); //your code 
  event.stopEvent(); //this stops the itemtap event  
},
onRequestItemTap: function (list, idx, el, record) {
  console.log('I didn't press the button I pressed anywhere out of the button but inside the item list.') //your code 
},

或者如果您在视图中有侦听器

    xtype: 'button',
    flex: 1,
    text: 'decline',
    ui: 'decline',
    listeners: {
      tap: function (self,event) {
        //your code 
        event.stopEvent();
      }