在 html 中:
<EMBED SRC="movies/test.mov" WIDTH="100%" HEIGHT="100%" AUTOPLAY="false" CONTROLLER="false" LOOP="false"PLUGINSPAGE="http://www.apple.com/quicktime/" id="movie1" />
在 JavaScript 中:
document.getElementById('movie1').Play();
错误:
Uncaught TypeError: Object #<HTMLEmbedElement> has no method 'Play'
然而,它可以在 JS 控制台中使用相同的 javascript,这是怎么回事?