JSFIDDLE“未定义d3".差异 [英] JSFIDDLE "d3 is not defined" differences
问题描述
为什么该小提琴的结果有效 http://jsfiddle.net/airwwwave/k74rs1fk/1/
Why does this fiddle's results work http://jsfiddle.net/airwwwave/k74rs1fk/1/
而这个不是 https://jsfiddle.net/airwwwave/k74rs1fk/1/
看看后者的控制台上显示d3 is not defined
?
A look at the latter's console says d3 is not defined
?
两个示例都具有D3 3.0.4 onLoad.
Both examples have D3 3.0.4 onLoad.
Chrome和FF中的行为相同.
Same behavior in both Chrome and FF.
推荐答案
原因已记录在控制台本身中:
The reason is logged in the console itself:
混合内容:位于的页面 ' https://fiddle.jshell.net/airwwwave/k74rs1fk/1/show/'已加载 HTTPS,但请求了不安全的脚本 " http://d3js.org/d3.v3.min.js ".该请求已被阻止;这 内容必须通过HTTPS提供.
Mixed Content: The page at 'https://fiddle.jshell.net/airwwwave/k74rs1fk/1/show/' was loaded over HTTPS, but requested an insecure script 'http://d3js.org/d3.v3.min.js'. This request has been blocked; the content must be served over HTTPS.
这篇关于JSFIDDLE“未定义d3".差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!