Ext.Function singleton

 Ext.Function  singleton

 
A collection of useful static methods to deal with function callbacks(处理函数回调的有用静态方法的集合)
 --------------------------------------------------------------------------------
alias( Object/Function object, String methodName ) : Function
Create an alias to the provided method property with name methodName of object.(创建对象的methodName方法属性的别名) Note that the execution scope will still be bound to the provided object itself.(注意执行的范围仍然是绑定到提供的对象本身。)
Parameters
    object : Object/Function
    methodName : String
Returns
    Function
    aliasFn(别名方法)
 
  
  
  
  
  1. (function(){ 
  2.     Ext.onReady(function(){ 
  3.     var o = { 
  4.       say : function(){ 
  5.         alert(111); 
  6.       } 
  7.         } 
  8.        var fn = Ext.Function.alias(o,'say'); 
  9.        fn(); 
  10.     }); 
  11. })(); 
 
 111

你可能感兴趣的:(文档,extjs4,Ext.Function)