// , 、 、 、 ( allowBlank false )
isEmpty : function(v, allowBlank){
return v === null || v === undefined || ((Ext.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false);
}
// toString Object.prototype.toString object tostring instanceof , Array , instanceof true , toString '[obejct object]' , tostring 。
isArray : function(v){
return toString.apply(v) === '[object Array]';
}
// Date ,Date
isDate : function(v){
return toString.apply(v) === '[object Date]';
}
// Object , extjs , var toString = Object.prototype.toString;
“!!”
isObject : function(v){
return !!v && Object.prototype.toString.call(v) === '[object Object]';
}
// 、 、
isPrimitive : function(v){
return Ext.isString(v) || Ext.isNumber(v) || Ext.isBoolean(v);
}
//
isFunction : function(v){
return toString.apply(v) === '[object Function]';
}
// : typeof typeof number,boolean,string,function,object,undefined, object,
isNumber : function(v){
return typeof v === 'number' && isFinite(v);
}
//
isString : function(v){
return typeof v === 'string';
}
//
isBoolean : function(v){
return typeof v === 'boolean';
}
// v , false, v tagName
isElement : function(v) {
return v ? !!v.tagName : false;
}
//
isDefined : function(v){
return typeof v !== 'undefined';
}
Ext.isOpera
Ext.isWebKit
Ext.isChrome
Ext.isSafari
Ext.isSafari3
Ext.isSafari4
Ext.isSafari2
Ext.isIE
Ext.isIE6
Ext.isIE7
Ext.isIE8
Ext.isGecko
Ext.isGecko2
Ext.isGecko3
Ext.isBorderBox
Ext.isLinux
Ext.isWindows
Ext.isMac
Ext.isAir