JSFIDDLE "d3 is not defined" 差异
JSFIDDLE "d3 is not defined" differences
为什么 fiddle 的结果有效 http://jsfiddle.net/airwwwave/k74rs1fk/1/
而这个没有 https://jsfiddle.net/airwwwave/k74rs1fk/1/
看一看后者的控制台说 d3 is not defined
?
两个例子都有 D3 3.0.4 onLoad。
Chrome 和 FF 中的行为相同。
控制台本身记录的原因:
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.
为什么 fiddle 的结果有效 http://jsfiddle.net/airwwwave/k74rs1fk/1/
而这个没有 https://jsfiddle.net/airwwwave/k74rs1fk/1/
看一看后者的控制台说 d3 is not defined
?
两个例子都有 D3 3.0.4 onLoad。
Chrome 和 FF 中的行为相同。
控制台本身记录的原因:
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.