📜  如何在网站上播放通知声音? - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:04.847000             🧑  作者: Mango

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