• Remarks

    二代身份证号(18位数字),最后一位是校验位,可能为数字或字符X

    Returns

    返回true|fase

    Parameters

    • val: string

      需要校验的字符串

    Returns boolean