播放WAV文件的能力有没有一种方法来测试浏览器的打在javascript测试浏览器中的JavaScript
function playSound(myWAVfile)
{
if (soundEmbed)
{
document.body.removeChild(soundEmbed);
}
soundEmbed = document.createElement("embed");
soundEmbed.setAttribute("src", myWAVfile);
soundEmbed.setAttribute("hidden", true);
soundEmbed.setAttribute("autostart", true);
document.body.appendChild(soundEmbed);
}
专门查看是否有方法在javascript中检测浏览器对声音的支持。 –