- html
- js define([
'dojo/dom'
], function( dom){
return declare(null //如果有dialog则[ Dialog,TemplatedMixin, WidgetsInTemplateMixin ],
{
a:undefined,
constructor:function(args){
this.a=registry.byId();
on(this.a, 'click' ,lang.hitch(this,'onclick' )) //or this.onclick.bind(this)
},
onclick :function (){
XXXX
}
otherFunction(){
}
})
})
- css
- deBug
dojo学习日记(7)——dojo主页的设计思路
最新推荐文章于 2016-12-14 14:58:31 发布