dojo學習日記(7)——dojo主頁的設計思路

  1. html
  2. 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(){
          }
    })
    })
  3. css
  4. deBug
發佈了46 篇原創文章 · 獲贊 5 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章