We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
看了content那里貌似没有获取生日的代码
The text was updated successfully, but these errors were encountered:
也想知道
Sorry, something went wrong.
https://jingyan.baidu.com/article/72ee561abd962fe16038df48.html 分析一下身份号就OK了
提供一个Swift4.0的计算方法 先扩展两个便捷方法
extension { func substring(fromIndex: Int) -> String { return self[min(fromIndex, length) ..< length] } func substring(toIndex: Int) -> String { return self[0 ..< max(0, toIndex)] } }
然后
let birthday = idInfo.num.substring(fromIndex: 6).substring(toIndex: 14) let birthYear = birthday.substring(toIndex: 4) let birthMonth = birthday.substring(fromIndex: 5).sustring(toIndex: 6)
No branches or pull requests
看了content那里貌似没有获取生日的代码
The text was updated successfully, but these errors were encountered: