::: anchor ::: ::: title 基本介绍 ::: ::: describe 需要一个简洁的对话框询问用户时。 ::: ::: title 基础使用 ::: ::: demo 通过 `layer.confirm` 方法, 创建一个对话框。 ::: ::: title 指定操作 ::: ::: demo 使用 `btn` 属性, 自定义对话框操作列表。 ::: ::: title 组件方法 ::: ``` layer.confirm(content, options) ``` ::: title 组件属性 ::: ::: table | 属性 | 描述 | 备注 | | ------------------- | ------ | ---- | | content | 内容 | -- | | options | 选配属性 | { time: 加载时长, btn: 按钮组 } | ::: ::: contributor confirm ::: ::: previousNext confirm :::