- 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主頁的設計思路
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.