播放使用Javascript声音通知? [英] Playing sound notifications using Javascript?

查看:98
本文介绍了播放使用Javascript声音通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能做到这一点,所以每当一个用户点击一个链接,我们播放声音?使用JavaScript和jQuery这里。

How can I do that, so whenever a user clicks a link we play a sound? Using javascript and jquery here.

推荐答案

<一个href=\"https://github.com/admsev/jquery-play-sound\">https://github.com/admsev/jquery-play-sound

$ .playSound('http://example.org/sound.mp3');

$.playSound('http://example.org/sound.mp3');

这篇关于播放使用Javascript声音通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆