uni-app常用的系统自带的轻提示
// 默认在2s后消失uni.showToast({icon: "none",title: titleName,duration: 3000,position: 'top'})// 加载动画提示,不会自动消失uni.showLoading({title: '加载中...'});控制uni.showLoading()消失的方法: uni.hideLoading();// 类似于alert弹窗uni.
·
// 默认在2s后消失
uni.showToast({
icon: "none",
title: titleName,
duration: 3000,
position: 'top'
})
// 加载动画提示,不会自动消失
uni.showLoading({
title: '加载中...'
});
控制uni.showLoading()消失的方法: uni.hideLoading();
// 类似于alert弹窗
uni.showModal({
content: '出现啦',
})
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200520100201705.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjU1MzE3OQ==,size_16,color_FFFFFF,t_70)
更多推荐
已为社区贡献3条内容
所有评论(0)