如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
$有问题时,采用以下方式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
(function ($) { $('.portfolio-two-item').click(function () { var video_path = $(this).data('src'); layer.open({ type: 2, title: '查看视频', shadeClose: true, shade: 0.8, // area: ['100%', '600px'], content: video_path //iframe的url <iframe height=498 width=510 src='https://player.youku.com/embed/XNDE4NzExNTEzMg==' frameborder=0 'allowfullscreen'></iframe> }); }) })(jQuery); |