当前位置: 代码迷 >> Web前端 >> Learning Dojo - 3.2 OO APIs
  详细解决方案

Learning Dojo - 3.2 OO APIs

热度:699   发布时间:2012-11-11 10:07:57.0
Learning Dojo -- 3.2 OO APIs

1. dojo.hitch:  Takes a function as the parameter and execute it

   var alerter = {
      doAlert: function(){
         alert("something");
      }
   }

   dojo.hitch(alerter, doAlert);



2. Array methods: dojo.forEach(), dojo.every(), and so on

3. Type methods: dojo.isString(), dojo.isArray()...

4. Object Coping: dojo.mixin(), dojo.clone()...