我想用'选择患者'更改'确定'按钮,将'取消'更改为'速度包'.我怎样才能做到这一点?
swal({
text: "Start new case by",
buttons: true,
confirmButtonText: "Select Patient?",
cancelButtonText: "Speed Case?",
});
Run Code Online (Sandbox Code Playgroud)
小智 11
这是答案
swal({
title: "Are you sure?",
text: "you want to Cancel Operation!",
type: "warning",
showCancelButton: true,
confirmButtonColor: '#DD6B55',
confirmButtonText: 'Yes, I am sure!',
cancelButtonText: "No, cancel it!",
closeOnConfirm: false,
closeOnCancel: false
},
Run Code Online (Sandbox Code Playgroud)
希望它对你有用
swal({
text: "Start new case by",
buttons: ["Select Patient?", "Speed Case?"],
});
Run Code Online (Sandbox Code Playgroud)
小智 8
您可以使用这种方法
swal({
text: "Start new case by",
showCancelButton: true,
confirmButtonText: "Select Patient?",
cancelButtonText: "Speed Case?",
title: 'Title'
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13096 次 |
| 最近记录: |