Commit 70ddde12 authored by JingChao's avatar JingChao

Updates angular/hlsPopup.md

Auto commit by GitBook Editor
parent 9c29e81f
......@@ -29,13 +29,13 @@ APP开发经常会安功能需求弹出各种提示框,此工具类封装了
#### 三、弹出确认提示框 `confirm`
- 弹出框进行用户确认,代码实现如下
```javascript
function open_new_win() {
hlsPopup.confirm('技术小哥经过不懈努力...', '版本更新', function (index) {
alert(index);
});
}
```
```javascript
function open_new_win() {
hlsPopup.confirm('技术小哥经过不懈努力...', '版本更新', function (index) {
alert(index);
});
}
```
- 此函数接受三个参数`content`提示内容,可以为空、`title`标题,不为空、`onConfirm`回调函数,函数返回`index` 0表示取消,1表示确定,可根据返回值执行其他逻辑。
- 效果如下
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment