首页 > 解决方案 > 在 sweetalert 弹出窗口中实现声音

问题描述

英语不是我的母语,请原谅我的任何错误。

是否可以在 swalfire 弹出窗口中实现音频文件。在此弹出窗口中我会收到通知/声音:

Swal.fire({
  title: 'Custom width, padding, background.',
  width: 600,
  padding: '3em',
  background: '#fff url(/images/trees.png)',
  backdrop: `
    rgba(0,0,123,0.4)
    url("/images/nyan-cat.gif")
    left top
    no-repeat
  `
})

标签: audiopopupsweetalert

解决方案


推荐阅读