# confirm
弹出确认框。来源自 Cordova API (opens new window)。
# 输入
继承标准对象输入,扩展属性描述
| 名称 | 数据类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| message | string | 是 | 窗口消息内容 | |
| title | string | 是 | 窗口标题 | |
| buttonName | string | 是 | 按钮组的名称,例:"确定,取消" |
# 输出
继承标准对象输出,无扩展属性
# 示例代码
app.confirm("确定要使用BingoTouch吗?", function(index){
if(index==1){
app.hint("我点击了OK");
}else{
app.hint("我点击了Cancel");
}
}, "请您确认", "OK,Cancel");