springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-19 14:45:15
190
我有这个proyect要交付给我的学校,在那里我需要制作一个页面,我想制作一个类似游戏的投资组合,但我想让人单击一个定制按钮,在它重定向到新页面之前,它可以为它发出一个定制的声音。
<header headerIndex>
<audio id="selectaudio" preload="auto">
<source src="./audio/selectsound.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<a href="./pages/welcome.html" class="rpgui-button beginButton" id="playAudio">Lets Begin!</a>
</header>
所以这是我的代码,没有什么特别的。在移动到名为“welcome.html”的新页面之前,我如何使它发出音频声音。
如果需要任何javascript,我可以添加它,因为我会试着理解它是做什么的哈哈。谢谢!
顺晟科技:
我想这应该会有帮助,我也是JavaScript新手
我认为在重定向到另一页之前,您需要一点时间来播放声音。
我将这样做(需要Jquery):
<header headerIndex>
<audio id="selectaudio" preload="auto">
<source src="./audio/selectsound.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<a href="./pages/welcome.html" class="rpgui-button beginButton" id="playAudio">Lets Begin!</a>
</header>
和JS
<header headerIndex>
<audio id="selectaudio" preload="auto">
<source src="./audio/selectsound.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<a href="./pages/welcome.html" class="rpgui-button beginButton" id="playAudio">Lets Begin!</a>
</header>
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11