📜  在聊天 js 上播放通知声音 - Javascript 代码示例

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

代码示例1
function playSound(url) {
  const audio = new Audio(url);
  audio.play();
}