admin管理员组文章数量:1403435
Bit of a beginner at using JSFiddle...trying to recreate an issue in my code. Unsure how to include the correct reference though. For My code I am using:
<link href="/jquery-ui-1.10.3.custom/css/start/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" />
<script src="/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
So my Q being how do I include these files in JSFiddle. Cant seem to find them from the drop down?
Bit of a beginner at using JSFiddle...trying to recreate an issue in my code. Unsure how to include the correct reference though. For My code I am using:
<link href="/jquery-ui-1.10.3.custom/css/start/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" />
<script src="/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
So my Q being how do I include these files in JSFiddle. Cant seem to find them from the drop down?
Share Improve this question edited Nov 27, 2024 at 13:52 Danny Beckett 20.9k26 gold badges113 silver badges142 bronze badges asked Jul 8, 2015 at 8:29 JohnJohn 3,94522 gold badges84 silver badges174 bronze badges 3-
1
type
cdn url
atExternal Resources
. And if justjquery-ui
, choosejquery-pact(edge)
atFrameworks & Extensions
then it'll let you choose. – fuyushimoya Commented Jul 8, 2015 at 8:30 - @ArunPJohny The issue here is that the files the OP is trying to link are custom builds of the jQueryUI library, so they will not be publicly hosted (unless he has already published his site). Also, the links in your fiddles external references use the relative paths provided above, so will never work. – Rory McCrossan Commented Jul 8, 2015 at 8:36
- thanks for the help guys....still cant get it working...if you seem my attempt jsfiddle/j73vpk1m/2 does anyone know what I am doing wrong. popup should only display when 'create layer' button is clicked. the popUp should contain 3 radio button clicks with images attached to them and a 'next' button – John Commented Jul 8, 2015 at 8:43
1 Answer
Reset to default 8Use the external resource part. JSFiddle automatically identifies it as JS or CSS based on the extension:
Note: This will only work if the files are publicly available online. If they're only on your local machine, this feature won't work for you.
If you wanna upload your local file, you can use Gists and put your code in it. Then you can use RawGit to get the working URL and add it there, as usual.
本文标签: javascripthow to include reference in JSFIDDLEStack Overflow
版权声明:本文标题:javascript - how to include reference in JSFIDDLE - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744421942a2605501.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论