首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Learning Dojo - 3.2 OO APIs

2012-11-11 
Learning Dojo-- 3.2 OO APIs1. dojo.hitch:Takes a function as the parameter and execute itvar alerte

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()...

热点排行