【发布时间】:2016-11-05 09:11:04
【问题描述】:
我试图在 localhost 中包含一个 YouTube 订阅按钮,但它似乎不起作用,而在 JSfiddle 中它工作得非常好。难道我做错了什么?我正在使用来自https://developers.google.com/youtube/youtube_subscribe_button的代码
我在本地主机上的代码:
<!DOCTYPE html>
<html>
<head>
<title>Testing a YouTube button</title>
<script src="https://apis.google.com/js/platform.js"></script>
</head>
<body>
<div class="g-ytsubscribe" data-channelid="UCWTfbcQsyNLv1ZLsZrhVW2w" data-layout="full" data-count="default"></div>
</body>
</html>
谢谢!
【问题讨论】:
标签: javascript html youtube platform