这两个JSFiddle之间的区别是什么?

时间:2015-08-25 20:40:44

标签: dojo jsfiddle

我无法找到代码或设置的差异,但有一个做我想要的,另一个做不到。

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) {

});

VS

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) {

});

1 个答案:

答案 0 :(得分:4)