首页 > 编程知识 正文

wx.showtoast延时时间,uni.showtoast

时间:2023-05-03 08:00:11 阅读:270479 作者:4906

app.js

// 提示 showToast(text, time, icon) { // console.log(text, time, icon) wx.showToast({ title: text, duration: time, icon: icon != undefined && icon != NaN && icon != ''&&icon != 'none' ? icon : 'none' }) },

使用页

(‘提示语’,时长,'图标')

时长:1000为1秒

1.

getApp().showToast('没有更多数据啦!!!', 1000, '')

 

2.

getApp().showToast('没有更多数据啦!!!', 1000, 'success')

 

success, success_no_circle, info, warn, waiting, cancel, download, search, clear

详细介绍请参考官网:https://developers.weixin.qq.com/miniprogram/dev/component/icon.html

 

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。