1.wxml中写 image标签
class 名用三目运算设置,添加点击事件changer
2.编写样式
设置动画
并设置点击后image的样式
3. .js中创建音频
constinnerAudioContext=wx.createInnerAudioContext()
设置自动播放
innerAudioContext.autoplay=false
设置循环播放
innerAudioContext.loop=true
1.wxml中写 image标签
class 名用三目运算设置,添加点击事件changer
2.编写样式
设置动画
并设置点击后image的样式
3. .js中创建音频
constinnerAudioContext=wx.createInnerAudioContext()
设置自动播放
innerAudioContext.autoplay=false
设置循环播放
innerAudioContext.loop=true