0
我使用JSON(HTML源代碼),並且包含源的iframe像
如何在鏈接之前在iframe源代碼中添加http?
<iframe src="//www.youtube.com/embed/b34jsdg" height="360" width="640" allowfullscreen="" frameborder="0"></iframe><br>
我無法www.youtube.com/embed/b34jsdg的鏈接,並使用此查詢之前添加HTTP。
<script>$('iframe').each(function(){var a = 'https://'+$(this).attr('src');$(this).attr('src',a);});</script>