Skip to content

Commit cc8d138

Browse files
authored
Update README.md
1 parent 9d5d175 commit cc8d138

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,17 @@ yfBox.prompt({
88
txt:"这里是默认提示内容"
99
})
1010
```
11+
12+
### 2.有两个按钮有提示有标题有mark的提示框
13+
![defaultDemo](https://github.com/ClassName/yfBox/blob/master/images/defaultDemo.png)
14+
```
15+
yfBox.prompt({
16+
 title: "温馨提示",
17+
 txt: "这里是默认提示内容",
18+
 mark: "这里是底部小字",
19+
 btns: {ok: "确定",no: "取消" },
20+
 ok: function(){ }, //这里是点击确定时触发的函数
21+
 no: function(){ } //这里是点击取消时触发的函数,以上两个事件都包含默认事件,弹出框淡出
22+
})
23+
```
24+

0 commit comments

Comments
 (0)