Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 379 Bytes

isNum.md

File metadata and controls

24 lines (17 loc) · 379 Bytes

检测数字

1.引入

    var {
        isNum
    } = require('wx-tool')

2.参数

属性 类型 默认值 必填 说明
s string 所选数字

3.使用

    isNum('1')  // true
    isNum('19') // true
    isNum('d')  // false