Members
(inner, constant) objectType :Object
常用的引用类型
Type:
Properties- Object
 
| Name | Type | Description | 
|---|---|---|
objectType.object | String | 常规对象  | 
objectType.array | String | 数组  | 
objectType.date | String | 日期  | 
objectType.reg | String | 正则  | 
objectType.set | String | Set  | 
objectType.map | String | Map  | 
- Source
 
Methods
(inner) getObjectType(obj) → {String}
获取对象引用类型,可以和 objectType 包含的类型进行比较
Parameters:
| Name | Type | Description | 
|---|---|---|
obj | Object | 
- Source
 
Returns:
- Type:
 - String
 
Example
if(getObjectType(obj)===objectType.array){
}(inner) isNumber(val) → {Boolean}
判断传入值是否是数值
Parameters:
| Name | Type | Description | 
|---|---|---|
val | any | 
- Source
 
Returns:
- Type:
 - Boolean
 
(inner) isPlainObject(val) → {Boolean}
是否为普通对象
Parameters:
| Name | Type | Description | 
|---|---|---|
val | any | 
- Source
 
Returns:
- Type:
 - Boolean
 
(inner) isUndefined(val) → {Boolean}
判断传入值是否是未定义
Parameters:
| Name | Type | Description | 
|---|---|---|
val | any | 
- Source
 
Returns:
- Type:
 - Boolean
 
