问题
Why does this fiddle's results work http://jsfiddle.net/airwwwave/k74rs1fk/1/
and this one's doesn't https://jsfiddle.net/airwwwave/k74rs1fk/1/
A look at the latter's console says d3 is not defined
?
Both examples have D3 3.0.4 onLoad.
Same behavior in both Chrome and FF.
回答1:
The reason is logged in the console itself:
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.
来源:https://stackoverflow.com/questions/31394233/jsfiddle-d3-is-not-defined-differences