目前仅支持高性能模式容器,暂不支持普通容器。弹窗样式不支持定制。
参数名称 |
类型 |
必填 |
描述 |
title |
String |
非必填 |
confirm框的标题 |
content |
String |
非必填 |
confirm框的内容 |
confirmButtonText |
String |
非必填 |
确认按钮文字,默认“确认” |
cancelButtonText |
String |
非必填 |
取消按钮文字,默认“取消” |
success |
Function |
非必填 |
调用成功的回调函数 |
fail |
Function |
非必填 |
调用失败的回调函数 |
complete |
Function |
非必填 |
调用结束的回调函数(调用成功、失败都会执行)使用时请注意逻辑不要重复 |
参数名称 |
类型 |
描述 |
confirm |
Boolean |
点击confirm返回true,点击cancel返回false |
my.confirm({ title: '温馨提示', content: '您是否想查询快递单号: \n 1234567890', confirmButtonText: '马上查询', cancelButtonText: '暂不需要', success: (result) => { my.alert({ title: `${result.confirm}`, }); }, });