我有一个js函数,它从通道返回一个随机的VideoID。我想将这个ID动态插入到youtubeAPI的videoID参数中。 // 3.This function creates an <iframe> (and YouTube player) player = new YT.Player('player', {
我有一个带有Youtube视频ID的CSV文件和一个将ID放在数组中的函数,并且希望能够在用户单击图像时动态更改ID。基本上是这样的:<!-- 1.IFrame Player API code asynchronously.tag.src = "//www.youtube.comThis function creates an <iframe> (and YouTu