Ext.Function = {
flexSetter:function(fn){},
bind:function(fn, scope, args, appendArgs){},
pass:function(fn, args, scope){},
alias:function(object, methodName){},
clone: function(method) {}.
createInterceptor: function(origFn, newFn, scope, returnValue) {},
createDelayed: function(fn, delay, scope, args, appendArgs) {},
defer: function(fn, millis, scope, args, appendArgs) {},
createSequence: function(originalFn, newFn, scope) {},
createBuffered: function(fn, buffer, scope, args) {},
createThrottled: function(fn, interval, scope) {},
interceptBefore: function(object, methodName, fn, scope) {}
interceptAfter: function(object, methodName, fn, scope) {}
}
一共13个函数
flexSetter(fn) : 对当前对象调用fn(a,b), 如果a等于null,直接返回当前对象,
如果a是数组和对象,此时b无意义,迭代a里面的键值对为a和b,传到fn里,
for (k in a) {
if (a.hasOwnProperty(k)) {
fn.call(this, k, a[k]);
}
}
如果a是字符串,直接调用fn fn.call(this, a, b);
flexSetter:function(fn){},
bind:function(fn, scope, args, appendArgs){},
pass:function(fn, args, scope){},
alias:function(object, methodName){},
clone: function(method) {}.
createInterceptor: function(origFn, newFn, scope, returnValue) {},
createDelayed: function(fn, delay, scope, args, appendArgs) {},
defer: function(fn, millis, scope, args, appendArgs) {},
createSequence: function(originalFn, newFn, scope) {},
createBuffered: function(fn, buffer, scope, args) {},
createThrottled: function(fn, interval, scope) {},
interceptBefore: function(object, methodName, fn, scope) {}
interceptAfter: function(object, methodName, fn, scope) {}
}
一共13个函数
flexSetter(fn) : 对当前对象调用fn(a,b), 如果a等于null,直接返回当前对象,
如果a是数组和对象,此时b无意义,迭代a里面的键值对为a和b,传到fn里,
for (k in a) {
if (a.hasOwnProperty(k)) {
fn.call(this, k, a[k]);
}
}
如果a是字符串,直接调用fn fn.call(this, a, b);