这基本上是我想要做的:var player = new Player(AudioObj); // Audio object links to Audio class (not shown)player.buttons.pause = $('pause'); // Play and pause ID's link
我的js目前只为一个玩家工作。js花招上的所有代码: var audio = new Audio("https://assets.mixkit.co/sfx/download/mixkit-retro-game-notificationif($(this).hasClass('fa-play')) $(this).removeClass('fa-play');
$