我无法找到代码或设置的差异,但有一个做我想要的,另一个做不到。
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) {
});
答案 0 :(得分:4)