Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 408 Bytes

isIdCard.md

File metadata and controls

22 lines (16 loc) · 408 Bytes

判断是否为身份证

1.引入

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

2.参数

属性 类型 默认值 必填 说明
str string 身份证号

3.使用

    isIdCard('110101201904096331')  // true
    isIdCard('110101201904096')  // false