Javascript 错误:音频播放已中止IE 11 Windows 7
我有像这样的文件夹结构 文件夹交互页面测试Javascript 错误:音频播放已中止IE 11 Windows 7,javascript,internet-explorer,html5-audio,Javascript,Internet Explorer,Html5 Audio,我有像这样的文件夹结构 文件夹交互页面测试 C:\Users\username\Desktop\interactive\u pages\u test\test.html C:\Users\username\Desktop\interactive\u pages\u test\2\u Hot\u Cross\u Buns.mp3 文件夹测试 C:\Users\username\Desktop\test\test.html C:\Users\username\Desktop\test\2\u Hot
C:\Users\username\Desktop\interactive\u pages\u test\test.html
C:\Users\username\Desktop\interactive\u pages\u test\2\u Hot\u Cross\u Buns.mp3
文件夹测试
C:\Users\username\Desktop\test\test.html
C:\Users\username\Desktop\test\2\u Hot\u Cross\u Buns.mp3
文件test.html
和2\u Hot\u Cross\u Buns.mp3
是相同的。当我在IE 11中打开C:\Users\username\Desktop\interactive\u pages\u test\test.html
时,它抛出了一个错误:音频播放被中止
。但是C:\Users\username\Desktop\test\test.html
在IE中运行良好。在chrome和Mozilla中,这两个文件都运行良好。有人能就这个问题提出建议吗
瓦片
警报(“hi”);
不支持音频
事实上,Windows 8中的IE在播放音频时使用activeX控件,因此当您打开html文件时,它会提示activeX控件被阻止,如果您单击“允许阻止的内容”,则它将正常播放
但是我的IE没有提示:(。我在另一台电脑上测试过这个,然后IE