blockquote 没有 return 任何东西
blockquote does not return anything
此 sample 在 codepen 中有效,但在我的 html 文件中无效?
为什么会这样?
我已经尝试将 https:// 添加到 href,但仍然无法正常工作
<script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
a
<blockquote class="imgur-embed-pub" lang="en" data-id="KUteCdn">
<a href="//imgur.com/KUteCdn">View post on imgur.com</a>
</blockquote>
我猜这是一个与 CORS 相关的问题,请通过检查您的 js 控制台来验证这一点。要纠正此问题,您可以 运行 一个简单的 HTTP 服务器并从那里提供 html 文件。
在 Mac OS 你 运行 在终端中从你的工作目录
http-server -p 4090 .
在您的网络浏览器中,导航到 http://localhost:4090
这将阻止您收到此类错误
此 sample 在 codepen 中有效,但在我的 html 文件中无效? 为什么会这样?
我已经尝试将 https:// 添加到 href,但仍然无法正常工作
<script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
a
<blockquote class="imgur-embed-pub" lang="en" data-id="KUteCdn">
<a href="//imgur.com/KUteCdn">View post on imgur.com</a>
</blockquote>
我猜这是一个与 CORS 相关的问题,请通过检查您的 js 控制台来验证这一点。要纠正此问题,您可以 运行 一个简单的 HTTP 服务器并从那里提供 html 文件。
在 Mac OS 你 运行 在终端中从你的工作目录
http-server -p 4090 .
在您的网络浏览器中,导航到 http://localhost:4090
这将阻止您收到此类错误