Preparing search index...
The search index is not available
rock-utils
rock-utils
validateMoney
validateMoney
Function validateMoney
validate
Money
(
val
:
string
|
number
, decimal
?:
string
)
:
boolean
Description
验证是否为有效的金额
Note
1 必须为正确的数值
Note
2 数值必须不小于0
Returns
Parameters
val:
string
|
number
金额
decimal:
string
= '.'
小数点符号
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
rock-
utils
array
To
Tree
de
Repeat
diff
For
Two
Array
divide
Array
flat
Tree
To
Array
group
By
intersection
For
Two
Array
to
Local
Amount
union
Array
validate
Money
validate
Money
Generated using
TypeDoc
Description
验证是否为有效的金额
Note
1 必须为正确的数值
Note
2 数值必须不小于0
Returns