请问如何在小程序里实现:点开小程序就开始播放并循环背景音乐?

小程序 文章 2021-03-27 23:01 496 0 全屏看文

AI助手支持GPT4.0

请问如何在小程序里实现:点开小程序就开始播放并循环背景音乐?How do I implement it in the applet: click on the applet to start playing and looping background music?

请问如何在小程序里实现:点开小程序就开始播放并循环背景音乐?

请问如何在小程序里实现:点开小程序就开始播放并循环背景音乐?

在下新手小白,暂时只会点击图片触发播放声音T^T

求讲解、求代码

How to achieve in the small program: click on the small program to start playing and circulating background music? In the next novice Xiaobai, temporarily only click on the picture to trigger the playback of sound T ^ t for explanation and code

回答:

peng:

背景音频对象了解下

黑夜白昼1999:

没用过播放声音

点击图片触发 的代码 放到onLoad()里编译一下试试?

-EOF-

AI助手支持GPT4.0