【发布时间】:2013-01-28 15:43:03
【问题描述】:
这里是网站。看起来我得到了三个 js 错误。
http://thomaspalumbo.com/mostlymozart/
“下一步”按钮在某些时候没有响应。我做了一些研究,但我不知道如何解决这些错误。我所有的 js 都在我的 index.html 文件中。
【问题讨论】:
标签: javascript api youtube youtube-api
这里是网站。看起来我得到了三个 js 错误。
http://thomaspalumbo.com/mostlymozart/
“下一步”按钮在某些时候没有响应。我做了一些研究,但我不知道如何解决这些错误。我所有的 js 都在我的 index.html 文件中。
【问题讨论】:
标签: javascript api youtube youtube-api
网站加载对我来说很好。你确定这不仅仅是你的错误吗?
【讨论】:
function nextVideo() { var num = Math.round(Math.random() * 4); console.log(num); player.setShuffle(true); if (num >= 2) { player.nextVideo(); player.loadPlaylist({ list: '90s rap', listType: 'search', }) player.playVideo(); } else if (num < 2) { player.nextVideo(); player.loadPlaylist({ list: 'mozart', listType:'search', }) player.playVideo(); } }