首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
前端开发-微信小程序wx.showModal的使用方法
前端开发-微信小程序wx.showModal的使用方法
mac
2024-05-20
32
话不多说 直接上代码
wx
.
showModal
(
{
title
:
'提示'
,
content
:
'(提示的内容)'
,
showCancel
:
true
,
//默认为true,false去掉取消按钮
confirmText
:
''
,
//默认是“确认”
confirmColor
:
''
,
//确认文字的颜色
success
:
function
(
res
)
{
if
(
res
.
cancel
)
{
//点击取消按钮
}
else
if
(
res
.
confirm
)
{
//点击确认按钮
}
}
}
)
转载请注明原文地址: https://mac.8miu.com/read-491916.html
最新回复
(
0
)