#### 确认对话框(promise) 使用 `confirm()` 可以快捷地弹出确认框。onCancel/onOk 返回 promise 可以延迟关闭 #### Confirmation modal dialog use promise To use `confirm()` to popup confirmation modal dialog. Let onCancel/onOk function return a promise object to delay closing the dialog. ```tpl ```