我有一个list of Youtube links我想添加到Youtube播放列表中。虽然有太多的链接,所以我宁愿不手动。另外,我觉得这对我来说是一个有趣的Javascript技巧!
Youtube播放列表图片如下所示:(http://imgur.com/bzJ04ki,UUehUtS,AeuCKe5,RoUUks8#0)
我试图通过控制台并使用那个和诸如此类的东西,但我不知道如何处理Javascript中的点击事件(我广泛搜索了这个,并获得了一些关于“DOM”的东西的结果,我不知道真的明白了)。
我将如何进行此过程,或者,我可以看到哪些资源可以指向正确的方向?我对编码很新。
答案 0 :(得分:0)
以下是youtube播放列表的语法代码。
<iframe width="720" height="405" src="https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEOID_1,VIDEOID_2"frameborder="0" allowfullscreen>
根据语法,您的代码将如下所示。
<iframe width="720" height="405" src="https://www.youtube.com/embed/kU7oWUSXgg8?playlist=FXUAPHPKEnw,idcXJsPPcC0,mnCeGPTo1ps,DTdSFeQ2yVc,7lePlM-4IQQ,BetVjXZJL_s,1P9t08hLaYU,ALYjxDe5U6U,XpHCOi9AG5Q,nVKouZncauY,1iGyhTisX3I,9DpkwD0TqeY,tFb4pNhjPEA,nlpZNEkDqAQ,2uLjj81rPXI,4MDDFKAvgYA,GzKFEx-wsJo,NuroUwdxl1I,47YClVMlthI,59V0HUgze2Y,gCq8FgCbuZU,VXOYm27uDwc,TaJD91MXnTM,q6UyCcPfWEg,WOrH99yonMU,QEHodKKESyg,8CdAfYwEGCI,yKnG_9q4crA,u6IPPf9f_MI,lS5TIcLJXTw,iluv2qBdUZk,A81Z6hGjGJQ,OYIsa_u_C-s,oB9T-bXlMXI,iUhYGrC3elA,AQsZS508688,zF54tio1PtQ,F3Rs6I17RL0,vrRhp9x_Y7g,4BQ6PeyzxDk,prWdFfEF9xg,7KKcb5bDY8k,D67jM8nO7Ag,abHLpk4rn5M,XTN4A3B2Ybk,8Pl1YU1rXuE,7MvzjjPNzsk,H6Q4s_ZdvAQ,MBecuqA-xSk,ZS2UeyksAIU,HkMNOlYcpHg,ZCGhPk9c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放在播放列表中(超过500个)。如果你将它缩短到200以下就行了。