音乐的自动播放属性,这里也介绍一下: <audio controls="controls" autoplay="autoplay"> <source src="song.ogg" type="audio/ogg" /> <source src="song.mp3" type="audio/mpeg" /> Your browser does not s
function AudioPerform() { var ua = navigator.userAgent.toLowerCase(); var audiopath = "$!{TempletPath}images/ring.wav"; if (ua.match(/msie ([\d.]+)/)) { jQuery('#alert_sound').html('<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C
Chrome下调用play后抱错:DOMException: play() failed because the user didn't interact with the document first. 声音无法自动播放这个在IOS/Android上面一直是个惯例,桌面版的Safari在2017年的11版本也宣布禁掉带有声音的多媒体自动播放功能,紧接着在2018年4月份发布的Chrome 66也正式关掉了声音自动播放,也就是说 <audio autopaly></audio> &