我使用Firefox + Firebug并尝试停止错误消息...
Error: Permission denied to access property 'toString'
并在Chrome中说..
Unsafe JavaScript attempt to access frame with URL http://jsfiddle.net/PEaUD/ from frame with URL http://www.youtube.com/embed/zTFBJgnNgU4?rel=0&showinfo=0&autohide=1&controls=0. Domains, protocols and ports must match.
我只是使用jQuery之类的东西......
$("body").html('<iframe width="500" height="500" src="http://www.youtube.com/embed/zTFBJgnNgU4?rel=0&showinfo=0&autohide=1&controls=0" frameborder="0" allowfullscreen></iframe>');
演示: http://jsfiddle.net/PEaUD/
有什么问题?
我们无法修复它,因为...... https://stackoverflow.com/a/13101119/622813?
PS:我问,因为在我收到此错误的Firefox中,我无法播放YouTube视频,当我点击播放-btn时,无法在网址栏中输入/复制/传递(通过键盘)。答案 0 :(得分:3)