需要帮助修复我的 javascript 代码中的 link
need help to fix the link in my javascript code
有人可以帮我在我的 javascript 代码中解决这个 link
密码是
$('.frame_src').attr('src', 'https://www.youtube.com/embed/' + $(this).data('str'));
完整 link 是 https://www.youtube.com/embed/p9zdCra9gCE?&vq=hd720&rel=0;autoplay=1
我想把它做成这样我知道这是错误的但我无法修复它
$('.frame_src').attr('src', 'https://www.youtube.com/embed/' '?&vq=hd720&rel=0;autoplay=1' + $(this).data('str'));
快完成了,您需要在正确的位置插入 $(this).data('str')
值。
改变
$('.frame_src').attr('src', '<a href="https://www.youtube.com/embed/" rel="nofollow">https://www.youtube.com/embed/</a>' '?&vq=hd720&rel=0;autoplay=1' + $(this).data('str'));
至
$('.frame_src').attr('src','<a href="https://www.youtube.com/embed/" rel="nofollow">https://www.youtube.com/embed/</a>' + $(this).data('str' ) + '?&vq=hd720&rel=0;autoplay=1');
有人可以帮我在我的 javascript 代码中解决这个 link
密码是
$('.frame_src').attr('src', 'https://www.youtube.com/embed/' + $(this).data('str'));
完整 link 是 https://www.youtube.com/embed/p9zdCra9gCE?&vq=hd720&rel=0;autoplay=1
我想把它做成这样我知道这是错误的但我无法修复它
$('.frame_src').attr('src', 'https://www.youtube.com/embed/' '?&vq=hd720&rel=0;autoplay=1' + $(this).data('str'));
快完成了,您需要在正确的位置插入 $(this).data('str')
值。
改变
$('.frame_src').attr('src', '<a href="https://www.youtube.com/embed/" rel="nofollow">https://www.youtube.com/embed/</a>' '?&vq=hd720&rel=0;autoplay=1' + $(this).data('str'));
至
$('.frame_src').attr('src','<a href="https://www.youtube.com/embed/" rel="nofollow">https://www.youtube.com/embed/</a>' + $(this).data('str' ) + '?&vq=hd720&rel=0;autoplay=1');