📜  在javascript代码示例中以特定音量播放音频

📅  最后修改于: 2022-03-11 15:01:06.591000             🧑  作者: Mango

代码示例1
var music = new audio({
    loop: true,
    volume: 1,
    src: ['music.mp3']
})

//or 

var music = new Audio('music.mp3');
music.loop = true;
music.volume = 0.2;