我正在努力添加一个铃声通知,当在附表中插入任何新的数据行时,这将发出响铃。(同样,当我们收到新消息时,我们会在Facebook上收到通知)
I\'m able to make the function of the bell this below
function ding() {
var bell = new Audio("https://facebook.design/public/sounds/Notification%201.mp3");
bell.play();
}
现在,当插入新的数据行时,我面临的问题是无法正常工作,我已经尝试了许多如下代码
$("#theTable").on("change", function() {
function ding() {
var bell = new Audio("https://facebook.design/public/sounds/Notification%201.mp3");
bell.play();
}
});