我正在动态添加一个
代码为:
var newIframe = $("<iframe width='80px' height='80px' "
+ "src='http://www.youtube.com/watch?v=r3TtgYuaVFk' "
+ "frameborder='0' allowfullscreen id='vid" + mindBoxID + "'>");
var tmp = "#"+mindBoxID;
$(tmp).append(newIframe);
您src
URL 是错误的,请改用src='http://www.youtube.com/embed/r3TtgYuaVFk'
。
var newIframe = $("<iframe width='80px' height='80px' "
+ "src='http://www.youtube.com/embed/r3TtgYuaVFk' "
+ "frameborder='0' allowfullscreen id='vid" + mindBoxID + "'>");
var tmp = "#"+mindBoxID;
$(tmp).append(newIframe);
有关