这两个 JSFiddle 有什么区别?
What is the difference between these two JSFiddle's?
我无法在代码或设置中找到差异,但一个可以满足我的要求,而另一个则不能。
https://jsfiddle.net/Lr5c8vtb/2/
HTML
<button data-dojo-type="dijit/form/Button" data-dojo-props="label: 'gugu'">My Button</button>
<br><br>
<input type="checkbox" id="dbox1" checked
data-dojo-type="dijit/form/CheckBox">
<label for="dbox1">Want</label>
Javascript
require(["dojo/parser"], function(parser) {
});
对
https://jsfiddle.net/2mnm8py2/1/
HTML
<button data-dojo-type="dijit/form/Button" data-dojo-props="label: 'gugu'">My Button</button>
<br><br>
<input type="checkbox" id="dbox1" checked
data-dojo-type="dijit/form/CheckBox">
<label for="dbox1">Want</label>
Javascript
require(["dojo/parser"], function(parser) {
});
jsFiddle加载的外部资源不同
打开你的浏览器控制台,它会告诉你哪里出了问题
"NetworkError: 404 Not Found -
https://fiddle.jshell.net/Lr5c8vtb/2/show/claro.css"
"NetworkError: 404 Not Found -
https://fiddle.jshell.net/Lr5c8vtb/2/show/dojo.css"
工作 fiddle 正在引用 Google 的文件托管版本
http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/resources/dojo.css
https://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dijit/themes/claro/claro.css
外部引用(CSS 个文件)在第一个 link 中没有被正确引用。
参考文献应为:
http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/resources/dojo.css
https://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dijit/themes/claro/claro.css
我无法在代码或设置中找到差异,但一个可以满足我的要求,而另一个则不能。
https://jsfiddle.net/Lr5c8vtb/2/
HTML
<button data-dojo-type="dijit/form/Button" data-dojo-props="label: 'gugu'">My Button</button>
<br><br>
<input type="checkbox" id="dbox1" checked
data-dojo-type="dijit/form/CheckBox">
<label for="dbox1">Want</label>
Javascript
require(["dojo/parser"], function(parser) {
});
对
https://jsfiddle.net/2mnm8py2/1/
HTML
<button data-dojo-type="dijit/form/Button" data-dojo-props="label: 'gugu'">My Button</button>
<br><br>
<input type="checkbox" id="dbox1" checked
data-dojo-type="dijit/form/CheckBox">
<label for="dbox1">Want</label>
Javascript
require(["dojo/parser"], function(parser) {
});
jsFiddle加载的外部资源不同
打开你的浏览器控制台,它会告诉你哪里出了问题
"NetworkError: 404 Not Found - https://fiddle.jshell.net/Lr5c8vtb/2/show/claro.css"
"NetworkError: 404 Not Found - https://fiddle.jshell.net/Lr5c8vtb/2/show/dojo.css"
工作 fiddle 正在引用 Google 的文件托管版本
http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/resources/dojo.css
https://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dijit/themes/claro/claro.css
外部引用(CSS 个文件)在第一个 link 中没有被正确引用。
参考文献应为:
http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/resources/dojo.css
https://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dijit/themes/claro/claro.css