I know that i can create an audio object like this:
var audio = new Audio("test.wav");
And i know how i can play the audio:
audio.play();
I used the following for
loop to output all functions from audio
:
var myAudioObject = new Audio();
for (var key in myAudioObject)
{
if (typeof myAudioObject[key] === "function")
{
console.log(key);
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…