微信小程序---交互反馈
2024-10-21 10:17:02
1.学习大纲:
2.showToast():
wx.showToast({
title: '成功',
icon: 'success',
duration:
})
3.hieToast():
wx.showToast({
title: '加载中',
icon: 'loading',
duration:
}) setTimeout(function(){
wx.hideToast()
},)
4.showModal():
显示模态弹窗
//事件处理函数
bindViewTap: function() {
wx.showModal({
title: '提示',
content: '这是一个模态弹窗',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定')
}
}
})
},
5.showActionSheet()
显示操作菜单
//事件处理函数
bindViewTap: function() {
wx.showActionSheet({
itemList: ['A', 'B', 'C','D'],
success: function(res) {
console.log(res.tapIndex)
},
fail: function(res) {
console.log(res.errMsg)
}
})
},
最新文章
- LINQ函数
- [解决方案] pythonchallenge level 3
- 软件工程总结(Final)
- php部分---一个分页类、用法
- mac机器下远程仓库添加完毕之后,却无法上传应有的内容。
- sqlserver得到昨天的数据
- spring AOP简单入门
- HDU 4946 Area of Mushroom 凸包
- Objective-c学习笔记3
- 如何在C++中产生随机数
- ●BZOJ 4698 Sdoi2008 Sandy的卡片
- Pycharm的相关设置和快捷键集合
- SpringBoot系列:Pojo validation
- 20165305 《网络对抗技术》 Kali安装
- Photoshop CC安装与破解方法
- python的re模块详解
- SQL Server2008 18456错误
- HTML5游戏 看你有多“色” 开发
- DBMS_ROWID定位数据行物理存储位置
- system.Data.Entity.Infrastructure.DbUpdateConcurrencyException: Store update, insert, or delete statement affected an unexpected number of rows (0) 问题