构造函数
特性
divide
divide: ((...nums: number[]) => CalcChain) = ... minus
minus: ((...nums: number[]) => CalcChain) = ... times
times: ((...nums: number[]) => CalcChain) = ... plus
plus: ((...nums: number[]) => CalcChain) = ... 访问器
value
- get value(): number
返回 number
- set value(num): void
返回 void
方法
by
- by(num, calcLabel): CalcChain
参数
- num: number
- calcLabel:
| "*"
| "/"
| "-"
| "+"
valueOf
- valueOf(): number
返回 number
链式计算
示例