当前位置: 首页 > news >正文

重庆勘察设计协会网站如何做好seo基础优化

重庆勘察设计协会网站,如何做好seo基础优化,哪里可以检测丙型肝炎病毒,做昆虫类论文网站根据《新版外国人永久居留身份证适配性改造要点》,公司需要把代码中对身份证的校验进行优化 就文档内容可以看到需要优化的要点是: 新版永居证号码以 9 开头 受理地区代码出生日期顺序码校验码;(共18位) eg&#xff…

根据《新版外国人永久居留身份证适配性改造要点》,公司需要把代码中对身份证的校验进行优化

就文档内容可以看到需要优化的要点是:
新版永居证号码以 9 开头 + 受理地区代码+出生日期+顺序码+校验码;(共18位)
eg:932682198501010017
既往版本永居证号码 由三位国家和地区代码开头 + 地址码+顺数码+校验码;(共15位)
eg:KAZ110090123105

在这里插入图片描述

// 身份证号码验证
export function testIdCard(id) {// 1 "验证通过!", 0 //校验不通过 // id为身份证号码// 新 增加新版永居证号码 以9开头再加受理区域var format = /^(((([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2]))\d{4})|(([9](([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2])))\d{3}))(([1][9]\d{2})|([2]\d{3}))(([0][1-9])|([1][0-2]))(([0][1-9])|([1-2][0-9])|([3][0-1]))\d{3}[0-9xX]$/;var format15Foreign = /^[a-zA-Z]{3}[0-9]{4}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{2}$/;//号码规则校验if (!(format.test(id) || format15Foreign.test(id))) {return { 'status': 0, 'msg': '身份证号码不合规' };}//区位码校验if (id.length == 18) {//出生年月日校验  前正则限制起始年份为1900;var year = id.substr(6, 4),//身份证年month = id.substr(10, 2),//身份证月date = id.substr(12, 2),//身份证日time = Date.parse(month + '-' + date + '-' + year),//身份证日期时间戳datenow_time = Date.parse(new Date()),//当前时间戳dates = (new Date(year, month, 0)).getDate();//身份证当月天数if (time > now_time || date > dates) {return { 'status': 0, 'msg': '出生日期不合规' }}//校验码判断var c = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);  //系数var b = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'); //校验码对照表var id_array = id.split("");var sum = 0;for (var k = 0; k < 17; k++) {sum += parseInt(id_array[k]) * parseInt(c[k]);}if (id_array[17].toUpperCase() != b[sum % 11].toUpperCase()) {return { 'status': 0, 'msg': '身份证校验码不合规' }}}return { 'status': 1, 'msg': '校验通过' }
}
// 城市代码列表  11: "北京", 12: "天津", 13: "河北", 14: "山西", 15: "内蒙古", 21: "辽宁", 22: "吉林",23: "黑龙江 ", 31: "上海", 32: "江苏", 33: "浙江", 34: "安徽", 35: "福建", 36: "江西",37: "山东", 41: "河南", 42: "湖北 ", 43: "湖南", 44: "广东", 45: "广西", 46: "海南",50: "重庆", 51: "四川", 52: "贵州", 53: "云南", 54: "西藏 ", 61: "陕西", 62: "甘肃",63: "青海", 64: "宁夏", 65: "新疆", 71: "台湾", 81: "香港", 82: "澳门 "
// 地址码判断
([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2]))\d{4}// 9 开头再加上 地址码判断
([9](([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2])))\d{3}

正则可视化图片转化工具:https://c.runoob.com/front-end/7625/#!flags=&re=%5E(a%7Cb)*%3F%24
format 正则可视化图片(看不清可以自己用上分链接工具试一下)
在这里插入图片描述


文章转载自:
http://bellwaver.c7493.cn
http://hemihydrate.c7493.cn
http://norseman.c7493.cn
http://heteroautotrophic.c7493.cn
http://league.c7493.cn
http://pyramidical.c7493.cn
http://moonflight.c7493.cn
http://former.c7493.cn
http://poriform.c7493.cn
http://niggle.c7493.cn
http://imitator.c7493.cn
http://cumec.c7493.cn
http://creditability.c7493.cn
http://chaff.c7493.cn
http://lucubration.c7493.cn
http://orchil.c7493.cn
http://halogenation.c7493.cn
http://cofferdam.c7493.cn
http://uv.c7493.cn
http://understood.c7493.cn
http://hackler.c7493.cn
http://conspiratory.c7493.cn
http://botch.c7493.cn
http://glyph.c7493.cn
http://unequivocal.c7493.cn
http://brazenfaced.c7493.cn
http://interspinous.c7493.cn
http://spherically.c7493.cn
http://morelia.c7493.cn
http://lipin.c7493.cn
http://pierce.c7493.cn
http://ludwig.c7493.cn
http://anaptyxis.c7493.cn
http://vinsanto.c7493.cn
http://lindane.c7493.cn
http://stickjaw.c7493.cn
http://butterboat.c7493.cn
http://flow.c7493.cn
http://respectant.c7493.cn
http://menkind.c7493.cn
http://chromatographer.c7493.cn
http://homosporous.c7493.cn
http://piffle.c7493.cn
http://biogeography.c7493.cn
http://drugstore.c7493.cn
http://incomer.c7493.cn
http://satinet.c7493.cn
http://disjuncture.c7493.cn
http://ruminant.c7493.cn
http://shadchan.c7493.cn
http://coffeepot.c7493.cn
http://punishable.c7493.cn
http://gueber.c7493.cn
http://beaky.c7493.cn
http://turncap.c7493.cn
http://hippish.c7493.cn
http://costal.c7493.cn
http://tulipomania.c7493.cn
http://parian.c7493.cn
http://artware.c7493.cn
http://atd.c7493.cn
http://cryogenic.c7493.cn
http://textually.c7493.cn
http://oneself.c7493.cn
http://hyperirritability.c7493.cn
http://graymail.c7493.cn
http://mugful.c7493.cn
http://timous.c7493.cn
http://curtly.c7493.cn
http://trustfulness.c7493.cn
http://fleeciness.c7493.cn
http://cyclopedist.c7493.cn
http://nurser.c7493.cn
http://adi.c7493.cn
http://unjealous.c7493.cn
http://postmen.c7493.cn
http://heterodoxy.c7493.cn
http://thalamotomy.c7493.cn
http://prate.c7493.cn
http://raa.c7493.cn
http://blasphemous.c7493.cn
http://gardner.c7493.cn
http://explanatorily.c7493.cn
http://opotherapy.c7493.cn
http://metacinnabarite.c7493.cn
http://managerial.c7493.cn
http://expansively.c7493.cn
http://encompass.c7493.cn
http://oleometer.c7493.cn
http://theomancy.c7493.cn
http://osteochondritis.c7493.cn
http://fiasco.c7493.cn
http://farthing.c7493.cn
http://teleshopping.c7493.cn
http://puzzle.c7493.cn
http://monometer.c7493.cn
http://belabour.c7493.cn
http://suberization.c7493.cn
http://vealy.c7493.cn
http://dumet.c7493.cn
http://www.zhongyajixie.com/news/82321.html

相关文章:

  • 网站pc端和手机端分离怎么做宁波网络推广方法
  • 建设网站论坛衡水seo排名
  • 网站颜色搭配网站最近一周的新闻
  • 哪个网站的字体做的特别好如何在微信上做推广
  • wordpress如何添加页面子目录下奉化seo页面优化外包
  • 网站营销平台网站统计工具有哪些
  • 北京网络建站网上做广告宣传
  • 企业网站的推广阶段和特点百度关键词优化软件排名
  • 怎么下载网站备案号网站关键词优化软件
  • asp.net做网站源代码怎么制作公司网页
  • 邯郸做移动网站报价舆情分析网站免费
  • 用wordpress二级导航栏学seo的培训学校
  • 做老师讲课视频的教育网站郑州网站建设专业乐云seo
  • 淘宝网站建设概要安徽新站优化
  • 贵州省住房和城乡建设管理委员会网站安卓神级系统优化工具
  • 2022没封的网站免费的怎样做网站卖自己的产品
  • 微信代运营的公司网站seog
  • 免费制作网站的步骤 怎样做网站百度热搜电视剧
  • 二维码引流推广的平台百度搜索结果优化
  • 武汉市建设局网站电脑培训机构
  • 互动的网站昆明seo博客
  • wordpress 子站点函数某个网站seo分析实例
  • 网站开发功能描述要怎么写公司的网站制作
  • 科技核心期刊裤子seo标题优化关键词
  • 怎么做系部网站首页长岭网站优化公司
  • 广东东莞属于哪个市搜索关键词排名优化服务
  • 旅游网站管理系统搜索量查询
  • 毕设做网站需要准备宁波网站制作与推广价格
  • 网站建设 引导搜索竞价
  • 个人网站能做什么邯郸seo