这里是诀窍

我就是试试两个不一样的embed Code:

<p><iframe allow="accelerometer; autoplay=1; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/BQH5umzC2uY?&amp;autoplay=1" title="YouTube video player" width="560"></iframe></p>

<p>&nbsp;</p>

<div id="ytplayer">&nbsp;</div>
<script>
  // Load the IFrame Player API code asynchronously.
  var tag = document.createElement('script');
  tag.src = "https://www.youtube.com/player_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

  // Replace the 'ytplayer' element with an <iframe> and
  // YouTube player after the API code downloads.
  var player;
  function onYouTubePlayerAPIReady() {
    player = new YT.Player('ytplayer', {
      height: '360',
      width: '640',
      videoId: 'BQH5umzC2uY'
    });
  }
</script>

 

所有跟帖: 

好像,我只看到了一个~~~ -雪晶- 给 雪晶 发送悄悄话 雪晶 的博客首页 (675 bytes) () 11/30/2021 postreply 21:43:46

请您先登陆,再发跟帖!