首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
this.$confirm 弹框的使用
this.$confirm 弹框的使用
it
2026-02-18
7
代码
this
.
$confirm
(
'此操作将永久失效该数据, 是否继续?'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
// type: 'warning'
}
)
.
then
(
(
)
=>
{
console
.
log
(
'确定操作'
)
;
}
)
.
catch
(
(
)
=>
{
console
.
log
(
'取消操作'
)
;
}
)
;
效果
转载请注明原文地址: https://lol.8miu.com/read-34436.html
最新回复
(
0
)