adui
Version:
<div> <img src="https://wxa.wxs.qq.com/mpweb/delivery/legacy/wxadtouch/upload/t1/od834zef_52939fc6.png" style="margin:40px 0 0 -8px; background-color: #fcfcfc; box-shadow: none;" /> </div>
19 lines (18 loc) • 466 B
TypeScript
/**
* 取得小数点后几位
* @param value
*/
export declare const getDecimalNumber: (value: number) => number;
/**
* 将字符串转换成数字,对空字符转换成 0
* @param value
*/
export declare const stringToNumber: (value?: string | null) => number;
/**
* 判断字符串是否合法
* @param step
* @param val
* @param min
* @param max
*/
export declare const isLegal: (step: number, val?: string, min?: number, max?: number) => boolean;