嗨,我无法将新按钮设置为禁用。我正在使用 Dojo 1.8
请参阅下面的代码:-
require(["dojo/parser", "dijit/layout/BorderContainer",
"dijit/form/Button","dojo/on","dijit/form/Select",
"dojo/store/Memory", "dojo/request","dojo/domReady!"
],
function(parser, BorderContainer, Button, on, Select, Memory, request)
{
var btn4 = new Button // Button, not button
({
label: "Number of cards",
this.set("disabled", false) // This code that disables the button
},"btn4");
btn4.startup();
})
我在 Dojo 或谷歌上找不到帮助。