大力出逗比

[备份]民族对应的身份证编号
忘了那个项目用的了
扫描右侧二维码阅读全文
06
2017/11

[备份]民族对应的身份证编号

忘了那个项目用的了

function mz(id){
        var aArray = {};//定义一个数组
        aArray['001'] = "汉族";
        aArray['002'] = "蒙古族";
        aArray['003'] = "回族";
        aArray['004'] = "藏族";
        aArray['005'] = "维吾尔族 ";
        aArray['006'] = "苗族";
        aArray['007'] = "彝族";
        aArray['008'] = "壮族";
        aArray['009'] = "布依族";
        aArray['010'] = "朝鲜族";
        aArray['011'] = "满族";
        aArray['012'] = "侗族";
        aArray['013'] = "瑶族";
        aArray['014'] = "白族";
        aArray['015'] = "土家族";
        aArray['016'] = "哈尼族";
        aArray['017'] = "哈萨克族";
        aArray['018'] = "傣族";
        aArray['019'] = "黎族";
        aArray['020'] = "僳僳族";
        aArray['021'] = "佤族";
        aArray['022'] = "畲族";
        aArray['023'] = "高山族";
        aArray['024'] = "拉祜族";
        aArray['025'] = "水族";
        aArray['026'] = "东乡族";
        aArray['027'] = "纳西族";
        aArray['028'] = "景颇族";
        aArray['029'] = "柯尔克孜族";
        aArray['030'] = "土族";
        aArray['031'] = "达斡尔族";
        aArray['032'] = "仫佬族";
        aArray['033'] = "羌族";
        aArray['034'] = "布朗族";
        aArray['035'] = "撒拉族";
        aArray['036'] = "毛难族";
        aArray['037'] = "仡佬族";
        aArray['038'] = "锡伯族";
        aArray['039'] = "阿昌族";
        aArray['040'] = "普米族";
        aArray['041'] = "塔吉克族";
        aArray['042'] = "怒族";
        aArray['043'] = "乌孜别克族";
        aArray['044'] = "俄罗斯族";
        aArray['045'] = "鄂温克族";
        aArray['046'] = "德昂族";
        aArray['047'] = "保安族";
        aArray['048'] = "裕固族";
        aArray['049'] = "京族";
        aArray['050'] = "塔塔尔族";
        aArray['051'] = "独龙族";
        aArray['052'] = "鄂伦春族";
        aArray['053'] = "赫哲族";
        aArray['054'] = "门巴族";
        aArray['055'] = "珞巴族";
        aArray['056'] = "基诺族";

        var j,k;
        for(var i=1; i<100; i++) {
            k= i.toString();
            if (i<9) j='00'+k; else j="0"+k;
            if(aArray[j] == id) {
              //  alert(j);
                return j;
                break;
            }
        }
    }
Last modification:December 1st, 2018 at 04:15 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment