<html>
<body>
<embed src="/i/helloworld.swf">
<embed src="/i/helloworld.swf">
<p>点击按钮显示文档中 embed 元素中的数量。</p>
<button onclick="myFunction()">点我</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = document.embeds.length;
}
</script>
</body>
</html>