0
所以我一直在尝试使用此代码的YouTube API V3给我加上我的测试网站订阅按钮:添加YouTube订阅按钮在我的网站,但给出了这样的错误
<script src="https://apis.google.com/js/platform.js"></script>
<div class="g-ytsubscribe" data-channelid="UCzfStpfCASIjJNK2xMNdJiw" data-layout="full" data-count="default"></div>
但是,当我加载页面,它给了我这些错误:
> Failed to execute 'postMessage' on 'DOMWindow': The target origin
> provided ('file://') does not match the recipient window's origin
> ('null'). cb=gapi.loaded 0:49
> Failed to execute 'postMessage' on 'DOMWindow': The target origin
> provided ('file://') does not match the recipient window's origin
> ('null'). cb=gapi.loaded 0:48
任何帮助,将不胜感激!
我不知道我做了什么,但突然它的工作!谢谢。 – Ismail