在角2組件導入命名空間給了我一個構造錯誤 ERROR Error: Uncaught (in promise): TypeError: YT.Player is not a constructor
TypeError: YT.Player is not a constructor
這裏是我的角度成分的定義,這是引用該命名空間 我也嘗試在我的組件中使用/// <reference path,但
按https://developers.google.com/youtube/iframe_api_reference player.getIframe():Object
This method returns the DOM node for the embedded <iframe>.
我如何訪問DOM節點像我可以與父頁面的DOM做的元素,如document.getElementByI