简体   繁体   English

jsfiddle中的外部资源未定义

[英]External resource in jsfiddle is undefined

I have made this github repo https://github.com/hollowdoor/dom_autoscroller_demo 我已经做了这个github回购https://github.com/hollowdoor/dom_autoscroller_demo

For some reason this jsfiddle referencing the repo doesn't work: http://jsfiddle.net/gh/get/library/pure/hollowdoor/dom_autoscroller_demo/tree/master/Demo 由于某种原因,这个引用仓库的jsfiddle无法正常工作: http : //jsfiddle.net/gh/get/library/pure/hollowdoor/dom_autoscroller_demo/tree/master/Demo

The external resources are left undefined. 外部资源未定义。

I have looked at other answers on stackoverflow, and none of those seem to address my specific problem. 我已经查看了关于stackoverflow的其他答案,但这些似乎都没有解决我的特定问题。

let wtf = "stack overflow doesn't like jsfiddle without code?"

There is a redirect on the external resouce that loads the dragula library. 在外部资源上有一个重定向,用于加载dragula库。

It would seem JS Fiddle doesn't follow it. 似乎JS Fiddle没有遵循它。

Updating the resource to the redirected link works. 将资源更新到重定向的链接有效。

ie Using https://unpkg.com/dragula@3.7.2/dist/dragula.js instead of https://unpkg.com/dragula/dist/dragula.js 即使用https://unpkg.com/dragula@3.7.2/dist/dragula.js而不是https://unpkg.com/dragula/dist/dragula.js

http://jsfiddle.net/3q9wjc2s/1/ http://jsfiddle.net/3q9wjc2s/1/

Yep, StackOverflow isn't suited to debugging issues with JSFiddle itself 
in situations like this due to the necessary protections against links.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM