COUNTER : object
计数器
Kind: global namespace
- COUNTER :
object
COUNTER.genUUID() ⇒ String
生成全局唯一UUID
Kind: static method of COUNTER
Returns: String
- UUID
COUNTER.countNext(countLabel) ⇒ Integer
每次调用时指定计数器都会自动增长1(根据计算器名,以0为基元),可用作生成增长序列号
Kind: static method of COUNTER
Returns: Integer
- 每次调用时指定计数器都会自动增长1(根据计算器名,以0为基元),可用作生成增长序列号
Param | Type | Description |
---|---|---|
countLabel | String |
计数器前缀 |
COUNTER.countNext2(headText, isYear, isMonth, isDay, digit) ⇒ String
返回“前缀 + 增长序列号”
Kind: static method of COUNTER
Returns: String
- 返回“前缀 + 增长序列号”
Param | Type | Description |
---|---|---|
headText | String |
作为前缀的字符串 |
isYear | Boolean |
前缀中是否包含年份 |
isMonth | Boolean |
前缀中是否包含月份 |
isDay | Boolean |
前缀中是否包含日期 |
digit | Integer |
指定增长序列号的位数 |
COUNTER.getLastCount(countLabel) ⇒ Integer
根据计数器名称获取计数器的当前计数值
Kind: static method of COUNTER
Returns: Integer
- 根据计数器名称获取计数器的当前计数值
Param | Type | Description |
---|---|---|
countLabel | String |
计数标签 |
COUNTER.getLastCount2(headText, isYear, isMonth, isDay, digit) ⇒ String
返回“前缀 +年月日+ 计数器的当前计数值”
Kind: static method of COUNTER
Returns: String
- 返回“前缀 +年月日+ 计数器的当前计数值”
Param | Type | Description |
---|---|---|
headText | String |
作为前缀的字符串 |
isYear | Boolean |
boolean型,前缀中是否包含年份 |
isMonth | Boolean |
boolean型,前缀中是否包含月份 |
isDay | Boolean |
boolean型,前缀中是否包含日期 |
digit | Boolean |
数值型,指定增长序列号的位数 |
COUNTER.resetCounter(countLabel)
重置以其参数为类型生成的计算累计值,使其归0
Kind: static method of COUNTER
Param | Type | Description |
---|---|---|
countLabel | String |
字符串型参数 |
文档更新时间: 2023-05-29 03:32 作者:admin