嗨,我将设置新的按钮设置为禁用.
我正在使用Dojo 1.8
我正在使用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或谷歌找不到帮助.