我创建了一个游戏,充当我的投资组合的展示。 但是我想音频暂停当某个函数被调用 var aud = document.getElementById("#music");
我创建充当站在了音乐 function web(i){
aud.pause(); //I try to pause the variable here
keysPressed = {};
if (!
所以我看起来像这样的代码。我按下按钮,播放一个MP3。但我似乎无法找到一个停止按钮,并希望你们都能帮助我。 <a href="#/" id="song1" class="buttons">Name of Song 1</a>
<a href="#/" id="song2" class="buttons">Name of Song 2</a>
var audios =
Array.proto