uniapp弹窗
·
一、提示弹窗
1.带有确认按钮的
uni.showModal({
title: '提示',
content: '提示内容',
showCancel: false, // 只保留确认按钮
success: (res) => {
if (res.confirm) {
//确认后具体操作
}
}
})

2.弹出显示一下
(1)
uni.showToast({ title: '提示内容', icon: 'none' });

uni.showToast({
title: '错误',
icon: 'error'
});

(2)
uni.$u.toast('超过限定时间,禁止操作')
![]()
二、加载窗
uni.showLoading({ title: '加载中...', mask: true });
uni.hideLoading();
mask:true,遮罩
更多推荐
所有评论(0)