效果图如下: 核心代码如下: delType:function(e){ var typeId = e.currentTarget.dataset['id']; console.log("delete:"+typeId) wx.showModal({ title: '提示', content: '确认要删除该支出类型?', success: function (res) { if (res.confirm) { console.log('用户点击确定') wx.request({ url: getApp().globalData.urlPat