1、wx.showToast() 弹出提示框
// 弹出Toast提示框
wx.showToast({
title: "添加成功",
icon: "success",
duration: 1500,
mask: true // 遮罩
})
2、wx.showModal()
wx.showModal({
title: '提示',
content: '确认删除吗?',
cancelColor: '#aaa',
cancelText: '我再想想',
confirmColor: '#f00',
confirmText: '残忍删除'}).then(res=>{
console.log(res)
if(res.confirm){ // 选择了确认 ... }
})