6/22完善引入,
This commit is contained in:
@@ -19,8 +19,8 @@ export function isPlateNumber(val: string): boolean {
|
||||
}
|
||||
/**
|
||||
* 验证金钱
|
||||
* @param {number} val
|
||||
* @return {boolean} true 符合 false 不符合
|
||||
* @param value
|
||||
*/
|
||||
export function isMoney(value: number): boolean {
|
||||
const reg = /^(0|[1-9]\d*)(\.\d{1,2})?$/;
|
||||
|
||||
Reference in New Issue
Block a user