wx.showModal({
title: '提示',
content: '您確定要刪除該文件嗎?',
showCancel: true, //是否顯示取消按鈕-----》false去掉取消按鈕
cancelText: "否", //默認是“取消”
cancelColor: 'skyblue', //取消文字的顏色
confirmText: "是", //默認是“確定”
confirmColor: 'skyblue', //確定文字的顏色
success: function(res) {
if (res.cancel) {
//點擊取消
console.log("您點擊了取消")
} else if(res.confirm){
//點擊確定
console.log("您點擊了確定")
}
}
})