JSFIDDLE “d3 is not defined” differences

↘锁芯ラ 提交于 2019-12-13 02:09:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!