wx.shoModal()

模态弹窗

样式:

wx.showModal() 相当于 JS中的 confirm()

 

 

示例代码:

wx.showModal({
  title: '提示',
  content: '这是一个模态弹窗',
  success (res) {
    if (res.confirm) {
      console.log('用户点击确定')
    } else if (res.cancel) {
      console.log('用户点击取消')
    }
  }
})

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2021-11-16
  • 2021-05-29
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-05-24
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案