Methods
# static checkPosition(position) → {boolean}
检查当前是否可用的Position
Parameters:
| Name | Type | Description |
|---|---|---|
position |
Position
|
Position对象 |
trrue 或者 false
boolean
# static isPromise(obj) → {boolean}
是否异步
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object
|
检查的对象 |
- 是否异步
boolean
# static merge(dest, …sources) → {Object}
多个对象属性合并
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
dest |
Object
|
源对象 |
|
sources |
Object
|
<repeatable> |
其他对象 |
- 合并后的对象
Object
# static splitWords(str) → {Array.<String>}
分割字符串
Parameters:
| Name | Type | Description |
|---|---|---|
str |
string
|
要分割的字符串 |
- 分割后的
Array.<String>
# static trim(str) → {string}
取消字符串的空白字符
Parameters:
| Name | Type | Description |
|---|---|---|
str |
string
|
字符串 |
- 字符串
string
# static uuid(prefix) → {string}
生成uuid
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
prefix |
string
|
X | 前缀 |
uuid - 生成id
string