我想要$(".lyplayer_jwplayer").click(function(){
$($(".ke-edit-iframe:first").contents().find(".ke-content")).append("<p>.......</p>");
});
以上这段代码中的........替换成以下这段,只要点击可以正确输出出来这段代码就行!我现在直接放进去点按钮啥反应也没有。
<script type="text/javascript">jwplayer("player").setup({skin: "jwplayer/glow.zip",stretching: "fill",flashplayer: "http://www.sucaihuo.com/jquery/1/145/demo/jwplayer/player.swf",image: "http://maoning.me/content/uploadfile/201703/e9a81489306396.jpg",aspectratio:"10:6",levels: [{file: "http://omoyki0gv.bkt.clouddn.com/11.mp4"}]});</script>
更详细的代码发错区了,请大神移步到这里,先谢谢了各位
http://bbs.csdn.net/wap/topics/392143010

解决方案 »

  1.   


    $(".lyplayer_jwplayer").click(function(){
    jwplayer("player").setup({skin: "jwplayer/glow.zip",stretching: "fill",flashplayer: "http://www.sucaihuo.com/jquery/1/145/demo/jwplayer/player.swf",image: "http://maoning.me/content/uploadfile/201703/e9a81489306396.jpg",aspectratio:"10:6",levels: [{file: "http://omoyki0gv.bkt.clouddn.com/11.mp4"}]});
    });
    直接复制进去
      

  2.   

    $($(".ke-edit-iframe:first").contents().find(".ke-content")).append("<p>.......</p>");中的$($(".ke-edit-iframe:first").contents().find(".ke-content"))这段为什么这么写?$(".ke-edit-iframe:first").contents().find(".ke-content")不就行了?
    大致看了下,jwplayer大概是要播放swf文件吧,jquery的append是要添加一个元素到另一个元素里。
    Free_Wind22想法没错,关键是
    jwplayer("player").setup({skin: "jwplayer/glow.zip",stretching: "fill",flashplayer: "http://www.sucaihuo.com/jquery/1/145/demo/jwplayer/player.swf",image: "http://maoning.me/content/uploadfile/201703/e9a81489306396.jpg",aspectratio:"10:6",levels: [{file: "http://omoyki0gv.bkt.clouddn.com/11.mp4"}]});
    播放swf的代码的问题,你要找找相关的资料,看是怎么播放swf文件的