【发布时间】:2016-10-07 19:35:26
【问题描述】:
我正在尝试加载一些过去(比如 6 个月前)有效的旧小提琴,现在由于不是 https 链接而无法加载外部库:
Blocked loading mixed active content “http://code.jquery.com/ui/1.8.18/jquery-ui.min.js”
Blocked loading mixed active content “http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.css”
Blocked loading mixed active content “http://code.jquery.com/ui/1.8.18/jquery-ui.min.js”
Blocked loading mixed active content “http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.css”
TypeError: $(...).sortable is not a function
最后一个错误显然是因为库没有加载。
示例: https://jsfiddle.net/abalter/2ydhrLmx/3/
这是浏览器配置问题吗?工作防火墙?我已经在更新的 chrome 和 firefox 中尝试过了。
如果我修复链接,小提琴就可以工作。但是我为什么要对我所有的旧小提琴都这样做呢?
【问题讨论】:
-
你只需要把你的http改成https ....
-
是的,但我为什么要回去更换我所有的旧小提琴。其中许多都与 SO 问题相关联。现在它们将无法正确显示。为什么现在会发生这种情况?
-
改变 jsfiddle 政策......他们开始这样做了,嗯,9 个月前
-
天哪。那里可能有无数的小提琴现在不起作用。他们真的应该制作一个按钮来自动更新链接。
-
是的......做这样的事情不应该是一个问题......也许他们很懒:)
标签: javascript http https jsfiddle