Ext.Function singleton
发表于:2024-11-26 作者:热门IT资讯网编辑
编辑最后更新 2024年11月26日,Ext.Function singletonA collection of useful static methods to deal with function callbacks(处理函数回调的有
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(别名方法)- (function(){
- Ext.onReady(function(){
- var o = {
- say : function(){
- alert(111);
- }
- }
- var fn = Ext.Function.alias(o,'say');
- fn();
- });
- })();