ajax加jq简单的制作一个省市编码的选择框

AJAX = 异步 JavaScript 和 XML(Asynchronous JavaScript and XML)。

AJAX :可扩展的标记语言

特点: 节省时间、节省带宽、用户体验好

get和post的简单区别

get: 请求数据    速度快   通过地址栏  URL或Cookie传参获取(安全度低)    长度限制2048

post: 提交数据   更加安全     不会被缓存   无长度限制

下面是省市编码选择框的制作

 1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="UTF-8">
 5         <title></title>
 6         <style>                                                /*简单的css*/
 7             div{                                                                                    
 8                 width: 630px;
 9                 height: 30px;
10                 margin: 0px auto;
11             }
12             select{
13                 width: 200px;
14                 height: 30px;
15             }
16             
17         </style>
18     </head>
19     <body>
20         <div id="">                                               <!--简单的布局-->
21             <select name="" class="first">
22                 <option>选择省</option>
23             </select>
24             <select name="" class="second">
25                 <option>选择市</option>
26             </select>    
27             <select name="" class="third">
28                 <option>编码</option>
29             </select>    
30         </div>
31         <script type="text/javascript" src="../js/jquery-3.1.1.min.js"></script>
32         <script type="text/javascript">
33         
34                 $.get("city.json",function(data,status){        //get获取数据
35                     if(status){                                   //找到数据的时候执行
36                         //console.log(data.城市代码);                    
37                         $(data.城市代码).each(function(i,el){            //遍历城市代码
38                             //console.log(el.省)
39                             var str="<option>"+el.省+"</option>"   // 找出省
40                             //console.log(str)
41                             $(".first").append(str);            //添加到选择区
42                     
43                         })
44                         $('.first').change(function(){                        //当改变了省的时候开始执行函数
45                             $('.second').html("<option>选择市</option>");        //清除上一次所选的城市
46                             $('.third').html("<option>编码</option>");        //清除上一次的城市编码
47                             $(data.城市代码).each(function(i,el){                
48                                 if($('.first').val() == el.省){                //找到所选取的省     因为省和市的下标是一致的
49                                     $(el.市).each(function(index,ele){        //遍历所有找到的市
50                                         //console.log(ele)
51                                         var str="<option>"+ele.市名+"</option>" //找出市名
52                                         //console.log(str)
53                                         $(".second").append(str);            //添加到选区
54                                         
55                                     })
56                                 }
57                             })
58                         })
59                         $('.second').change(function(){                        //当改变市名的时候执行
60                             $(data.城市代码).each(function(i,el){                
61                                 if($('.first').val() == el.省){
62                                     $(el.市).each(function(index,ele){
63                                         if($('.second').val() == ele.市名){   //找到选取的市名
64                                             var str="<option>"+ele.编码+"</option>" //编码跟市名同级
65                                             $(".third").html(str);            //替换编码的内容
66                                         }
67                                     })
68                                 }
69                             })
70                         })
71                     }
72                 })
73 
74         </script>
75     </body>
76 </html>

城市编码的json文件city.json

   1 {
   2   "城市代码" : [
   3     {
   4       "市" : [
   5         {
   6           "市名" : "北京",
   7           "编码" : "101010100"
   8         },
   9         {
  10           "市名" : "朝阳",
  11           "编码" : "101010300"
  12         },
  13         {
  14           "市名" : "顺义",
  15           "编码" : "101010400"
  16         },
  17         {
  18           "市名" : "怀柔",
  19           "编码" : "101010500"
  20         },
  21         {
  22           "市名" : "通州",
  23           "编码" : "101010600"
  24         },
  25         {
  26           "市名" : "昌平",
  27           "编码" : "101010700"
  28         },
  29         {
  30           "市名" : "延庆",
  31           "编码" : "101010800"
  32         },
  33         {
  34           "市名" : "丰台",
  35           "编码" : "101010900"
  36         },
  37         {
  38           "市名" : "石景山",
  39           "编码" : "101011000"
  40         },
  41         {
  42           "市名" : "大兴",
  43           "编码" : "101011100"
  44         },
  45         {
  46           "市名" : "房山",
  47           "编码" : "101011200"
  48         },
  49         {
  50           "市名" : "密云",
  51           "编码" : "101011300"
  52         },
  53         {
  54           "市名" : "门头沟",
  55           "编码" : "101011400"
  56         },
  57         {
  58           "市名" : "平谷",
  59           "编码" : "101011500"
  60         },
  61         {
  62           "市名" : "八达岭",
  63           "编码" : "101011600"
  64         },
  65         {
  66           "市名" : "佛爷顶",
  67           "编码" : "101011700"
  68         },
  69         {
  70           "市名" : "汤河口",
  71           "编码" : "101011800"
  72         },
  73         {
  74           "市名" : "密云上甸子",
  75           "编码" : "101011900"
  76         },
  77         {
  78           "市名" : "斋堂",
  79           "编码" : "101012000"
  80         },
  81         {
  82           "市名" : "霞云岭",
  83           "编码" : "101012100"
  84         },
  85         {
  86           "市名" : "北京城区",
  87           "编码" : "101012200"
  88         },
  89         {
  90           "市名" : "海淀",
  91           "编码" : "101010200"
  92         }
  93       ],
  94       "省" : "北京"
  95     },
  96     {
  97       "市" : [
  98         {
  99           "市名" : "天津",
 100           "编码" : "101030100"
 101         },
 102         {
 103           "市名" : "宝坻",
 104           "编码" : "101030300"
 105         },
 106         {
 107           "市名" : "东丽",
 108           "编码" : "101030400"
 109         },
 110         {
 111           "市名" : "西青",
 112           "编码" : "101030500"
 113         },
 114         {
 115           "市名" : "北辰",
 116           "编码" : "101030600"
 117         },
 118         {
 119           "市名" : "蓟县",
 120           "编码" : "101031400"
 121         },
 122         {
 123           "市名" : "汉沽",
 124           "编码" : "101030800"
 125         },
 126         {
 127           "市名" : "静海",
 128           "编码" : "101030900"
 129         },
 130         {
 131           "市名" : "津南",
 132           "编码" : "101031000"
 133         },
 134         {
 135           "市名" : "塘沽",
 136           "编码" : "101031100"
 137         },
 138         {
 139           "市名" : "大港",
 140           "编码" : "101031200"
 141         },
 142         {
 143           "市名" : "武清",
 144           "编码" : "101030200"
 145         },
 146         {
 147           "市名" : "宁河",
 148           "编码" : "101030700"
 149         }
 150       ],
 151       "省" : "天津市"
 152     },
 153     {
 154       "市" : [
 155         {
 156           "市名" : "上海",
 157           "编码" : "101020100"
 158         },
 159         {
 160           "市名" : "宝山",
 161           "编码" : "101020300"
 162         },
 163         {
 164           "市名" : "嘉定",
 165           "编码" : "101020500"
 166         },
 167         {
 168           "市名" : "南汇",
 169           "编码" : "101020600"
 170         },
 171         {
 172           "市名" : "浦东",
 173           "编码" : "101021300"
 174         },
 175         {
 176           "市名" : "青浦",
 177           "编码" : "101020800"
 178         },
 179         {
 180           "市名" : "松江",
 181           "编码" : "101020900"
 182         },
 183         {
 184           "市名" : "奉贤",
 185           "编码" : "101021000"
 186         },
 187         {
 188           "市名" : "崇明",
 189           "编码" : "101021100"
 190         },
 191         {
 192           "市名" : "徐家汇",
 193           "编码" : "101021200"
 194         },
 195         {
 196           "市名" : "闵行",
 197           "编码" : "101020200"
 198         },
 199         {
 200           "市名" : "金山",
 201           "编码" : "101020700"
 202         }
 203       ],
 204       "省" : "上海"
 205     },
 206     {
 207       "市" : [
 208         {
 209           "市名" : "石家庄",
 210           "编码" : "101090101"
 211         },
 212         {
 213           "市名" : "张家口",
 214           "编码" : "101090301"
 215         },
 216         {
 217           "市名" : "承德",
 218           "编码" : "101090402"
 219         },
 220         {
 221           "市名" : "唐山",
 222           "编码" : "101090501"
 223         },
 224         {
 225           "市名" : "秦皇岛",
 226           "编码" : "101091101"
 227         },
 228         {
 229           "市名" : "沧州",
 230           "编码" : "101090701"
 231         },
 232         {
 233           "市名" : "衡水",
 234           "编码" : "101090801"
 235         },
 236         {
 237           "市名" : "邢台",
 238           "编码" : "101090901"
 239         },
 240         {
 241           "市名" : "邯郸",
 242           "编码" : "101091001"
 243         },
 244         {
 245           "市名" : "保定",
 246           "编码" : "101090201"
 247         },
 248         {
 249           "市名" : "廊坊",
 250           "编码" : "101090601"
 251         }
 252       ],
 253       "省" : "河北"
 254     },
 255     {
 256       "市" : [
 257         {
 258           "市名" : "郑州",
 259           "编码" : "101180101"
 260         },
 261         {
 262           "市名" : "新乡",
 263           "编码" : "101180301"
 264         },
 265         {
 266           "市名" : "许昌",
 267           "编码" : "101180401"
 268         },
 269         {
 270           "市名" : "平顶山",
 271           "编码" : "101180501"
 272         },
 273         {
 274           "市名" : "信阳",
 275           "编码" : "101180601"
 276         },
 277         {
 278           "市名" : "南阳",
 279           "编码" : "101180701"
 280         },
 281         {
 282           "市名" : "开封",
 283           "编码" : "101180801"
 284         },
 285         {
 286           "市名" : "洛阳",
 287           "编码" : "101180901"
 288         },
 289         {
 290           "市名" : "商丘",
 291           "编码" : "101181001"
 292         },
 293         {
 294           "市名" : "焦作",
 295           "编码" : "101181101"
 296         },
 297         {
 298           "市名" : "鹤壁",
 299           "编码" : "101181201"
 300         },
 301         {
 302           "市名" : "濮阳",
 303           "编码" : "101181301"
 304         },
 305         {
 306           "市名" : "周口",
 307           "编码" : "101181401"
 308         },
 309         {
 310           "市名" : "漯河",
 311           "编码" : "101181501"
 312         },
 313         {
 314           "市名" : "驻马店",
 315           "编码" : "101181601"
 316         },
 317         {
 318           "市名" : "三门峡",
 319           "编码" : "101181701"
 320         },
 321         {
 322           "市名" : "济源",
 323           "编码" : "101181801"
 324         },
 325         {
 326           "市名" : "安阳",
 327           "编码" : "101180201"
 328         }
 329       ],
 330       "省" : "河南"
 331     },
 332     {
 333       "市" : [
 334         {
 335           "市名" : "合肥",
 336           "编码" : "101220101"
 337         },
 338         {
 339           "市名" : "芜湖",
 340           "编码" : "101220301"
 341         },
 342         {
 343           "市名" : "淮南",
 344           "编码" : "101220401"
 345         },
 346         {
 347           "市名" : "马鞍山",
 348           "编码" : "101220501"
 349         },
 350         {
 351           "市名" : "安庆",
 352           "编码" : "101220601"
 353         },
 354         {
 355           "市名" : "宿州",
 356           "编码" : "101220701"
 357         },
 358         {
 359           "市名" : "阜阳",
 360           "编码" : "101220801"
 361         },
 362         {
 363           "市名" : "亳州",
 364           "编码" : "101220901"
 365         },
 366         {
 367           "市名" : "黄山",
 368           "编码" : "101221001"
 369         },
 370         {
 371           "市名" : "滁州",
 372           "编码" : "101221101"
 373         },
 374         {
 375           "市名" : "淮北",
 376           "编码" : "101221201"
 377         },
 378         {
 379           "市名" : "铜陵",
 380           "编码" : "101221301"
 381         },
 382         {
 383           "市名" : "宣城",
 384           "编码" : "101221401"
 385         },
 386         {
 387           "市名" : "六安",
 388           "编码" : "101221501"
 389         },
 390         {
 391           "市名" : "巢湖",
 392           "编码" : "101221601"
 393         },
 394         {
 395           "市名" : "池州",
 396           "编码" : "101221701"
 397         },
 398         {
 399           "市名" : "蚌埠",
 400           "编码" : "101220201"
 401         }
 402       ],
 403       "省" : "安徽"
 404     },
 405     {
 406       "市" : [
 407         {
 408           "市名" : "杭州",
 409           "编码" : "101210101"
 410         },
 411         {
 412           "市名" : "舟山",
 413           "编码" : "101211101"
 414         },
 415         {
 416           "市名" : "湖州",
 417           "编码" : "101210201"
 418         },
 419         {
 420           "市名" : "嘉兴",
 421           "编码" : "101210301"
 422         },
 423         {
 424           "市名" : "金华",
 425           "编码" : "101210901"
 426         },
 427         {
 428           "市名" : "绍兴",
 429           "编码" : "101210501"
 430         },
 431         {
 432           "市名" : "台州",
 433           "编码" : "101210601"
 434         },
 435         {
 436           "市名" : "温州",
 437           "编码" : "101210701"
 438         },
 439         {
 440           "市名" : "丽水",
 441           "编码" : "101210801"
 442         },
 443         {
 444           "市名" : "衢州",
 445           "编码" : "101211001"
 446         },
 447         {
 448           "市名" : "宁波",
 449           "编码" : "101210401"
 450         }
 451       ],
 452       "省" : "浙江"
 453     },
 454     {
 455       "市" : [
 456         {
 457           "市名" : "重庆",
 458           "编码" : "101040100"
 459         },
 460         {
 461           "市名" : "合川",
 462           "编码" : "101040300"
 463         },
 464         {
 465           "市名" : "南川",
 466           "编码" : "101040400"
 467         },
 468         {
 469           "市名" : "江津",
 470           "编码" : "101040500"
 471         },
 472         {
 473           "市名" : "万盛",
 474           "编码" : "101040600"
 475         },
 476         {
 477           "市名" : "渝北",
 478           "编码" : "101040700"
 479         },
 480         {
 481           "市名" : "北碚",
 482           "编码" : "101040800"
 483         },
 484         {
 485           "市名" : "巴南",
 486           "编码" : "101040900"
 487         },
 488         {
 489           "市名" : "长寿",
 490           "编码" : "101041000"
 491         },
 492         {
 493           "市名" : "黔江",
 494           "编码" : "101041100"
 495         },
 496         {
 497           "市名" : "万州天城",
 498           "编码" : "101041200"
 499         },
 500         {
 501           "市名" : "万州龙宝",
 502           "编码" : "101041300"
 503         },
 504         {
 505           "市名" : "涪陵",
 506           "编码" : "101041400"
 507         },
 508         {
 509           "市名" : "开县",
 510           "编码" : "101041500"
 511         },
 512         {
 513           "市名" : "城口",
 514           "编码" : "101041600"
 515         },
 516         {
 517           "市名" : "云阳",
 518           "编码" : "101041700"
 519         },
 520         {
 521           "市名" : "巫溪",
 522           "编码" : "101041800"
 523         },
 524         {
 525           "市名" : "奉节",
 526           "编码" : "101041900"
 527         },
 528         {
 529           "市名" : "巫山",
 530           "编码" : "101042000"
 531         },
 532         {
 533           "市名" : "潼南",
 534           "编码" : "101042100"
 535         },
 536         {
 537           "市名" : "垫江",
 538           "编码" : "101042200"
 539         },
 540         {
 541           "市名" : "梁平",
 542           "编码" : "101042300"
 543         },
 544         {
 545           "市名" : "忠县",
 546           "编码" : "101042400"
 547         },
 548         {
 549           "市名" : "石柱",
 550           "编码" : "101042500"
 551         },
 552         {
 553           "市名" : "大足",
 554           "编码" : "101042600"
 555         },
 556         {
 557           "市名" : "荣昌",
 558           "编码" : "101042700"
 559         },
 560         {
 561           "市名" : "铜梁",
 562           "编码" : "101042800"
 563         },
 564         {
 565           "市名" : "璧山",
 566           "编码" : "101042900"
 567         },
 568         {
 569           "市名" : "丰都",
 570           "编码" : "101043000"
 571         },
 572         {
 573           "市名" : "武隆",
 574           "编码" : "101043100"
 575         },
 576         {
 577           "市名" : "彭水",
 578           "编码" : "101043200"
 579         },
 580         {
 581           "市名" : "綦江",
 582           "编码" : "101043300"
 583         },
 584         {
 585           "市名" : "酉阳",
 586           "编码" : "101043400"
 587         },
 588         {
 589           "市名" : "秀山",
 590           "编码" : "101043600"
 591         },
 592         {
 593           "市名" : "沙坪坝",
 594           "编码" : "101043700"
 595         },
 596         {
 597           "市名" : "永川",
 598           "编码" : "101040200"
 599         }
 600       ],
 601       "省" : "重庆"
 602     },
 603     {
 604       "市" : [
 605         {
 606           "市名" : "福州",
 607           "编码" : "101230101"
 608         },
 609         {
 610           "市名" : "泉州",
 611           "编码" : "101230501"
 612         },
 613         {
 614           "市名" : "漳州",
 615           "编码" : "101230601"
 616         },
 617         {
 618           "市名" : "龙岩",
 619           "编码" : "101230701"
 620         },
 621         {
 622           "市名" : "晋江",
 623           "编码" : "101230509"
 624         },
 625         {
 626           "市名" : "南平",
 627           "编码" : "101230901"
 628         },
 629         {
 630           "市名" : "厦门",
 631           "编码" : "101230201"
 632         },
 633         {
 634           "市名" : "宁德",
 635           "编码" : "101230301"
 636         },
 637         {
 638           "市名" : "莆田",
 639           "编码" : "101230401"
 640         },
 641         {
 642           "市名" : "三明",
 643           "编码" : "101230801"
 644         }
 645       ],
 646       "省" : "福建"
 647     },
 648     {
 649       "市" : [
 650         {
 651           "市名" : "兰州",
 652           "编码" : "101160101"
 653         },
 654         {
 655           "市名" : "平凉",
 656           "编码" : "101160301"
 657         },
 658         {
 659           "市名" : "庆阳",
 660           "编码" : "101160401"
 661         },
 662         {
 663           "市名" : "武威",
 664           "编码" : "101160501"
 665         },
 666         {
 667           "市名" : "金昌",
 668           "编码" : "101160601"
 669         },
 670         {
 671           "市名" : "嘉峪关",
 672           "编码" : "101161401"
 673         },
 674         {
 675           "市名" : "酒泉",
 676           "编码" : "101160801"
 677         },
 678         {
 679           "市名" : "天水",
 680           "编码" : "101160901"
 681         },
 682         {
 683           "市名" : "武都",
 684           "编码" : "101161001"
 685         },
 686         {
 687           "市名" : "临夏",
 688           "编码" : "101161101"
 689         },
 690         {
 691           "市名" : "合作",
 692           "编码" : "101161201"
 693         },
 694         {
 695           "市名" : "白银",
 696           "编码" : "101161301"
 697         },
 698         {
 699           "市名" : "定西",
 700           "编码" : "101160201"
 701         },
 702         {
 703           "市名" : "张掖",
 704           "编码" : "101160701"
 705         }
 706       ],
 707       "省" : "甘肃"
 708     },
 709     {
 710       "市" : [
 711         {
 712           "市名" : "广州",
 713           "编码" : "101280101"
 714         },
 715         {
 716           "市名" : "惠州",
 717           "编码" : "101280301"
 718         },
 719         {
 720           "市名" : "梅州",
 721           "编码" : "101280401"
 722         },
 723         {
 724           "市名" : "汕头",
 725           "编码" : "101280501"
 726         },
 727         {
 728           "市名" : "深圳",
 729           "编码" : "101280601"
 730         },
 731         {
 732           "市名" : "珠海",
 733           "编码" : "101280701"
 734         },
 735         {
 736           "市名" : "佛山",
 737           "编码" : "101280800"
 738         },
 739         {
 740           "市名" : "肇庆",
 741           "编码" : "101280901"
 742         },
 743         {
 744           "市名" : "湛江",
 745           "编码" : "101281001"
 746         },
 747         {
 748           "市名" : "江门",
 749           "编码" : "101281101"
 750         },
 751         {
 752           "市名" : "河源",
 753           "编码" : "101281201"
 754         },
 755         {
 756           "市名" : "清远",
 757           "编码" : "101281301"
 758         },
 759         {
 760           "市名" : "云浮",
 761           "编码" : "101281401"
 762         },
 763         {
 764           "市名" : "潮州",
 765           "编码" : "101281501"
 766         },
 767         {
 768           "市名" : "东莞",
 769           "编码" : "101281601"
 770         },
 771         {
 772           "市名" : "中山",
 773           "编码" : "101281701"
 774         },
 775         {
 776           "市名" : "阳江",
 777           "编码" : "101281801"
 778         },
 779         {
 780           "市名" : "揭阳",
 781           "编码" : "101281901"
 782         },
 783         {
 784           "市名" : "茂名",
 785           "编码" : "101282001"
 786         },
 787         {
 788           "市名" : "汕尾",
 789           "编码" : "101282101"
 790         },
 791         {
 792           "市名" : "韶关",
 793           "编码" : "101280201"
 794         }
 795       ],
 796       "省" : "广东"
 797     },
 798     {
 799       "市" : [
 800         {
 801           "市名" : "南宁",
 802           "编码" : "101300101"
 803         },
 804         {
 805           "市名" : "柳州",
 806           "编码" : "101300301"
 807         },
 808         {
 809           "市名" : "来宾",
 810           "编码" : "101300401"
 811         },
 812         {
 813           "市名" : "桂林",
 814           "编码" : "101300501"
 815         },
 816         {
 817           "市名" : "梧州",
 818           "编码" : "101300601"
 819         },
 820         {
 821           "市名" : "防城港",
 822           "编码" : "101301401"
 823         },
 824         {
 825           "市名" : "贵港",
 826           "编码" : "101300801"
 827         },
 828         {
 829           "市名" : "玉林",
 830           "编码" : "101300901"
 831         },
 832         {
 833           "市名" : "百色",
 834           "编码" : "101301001"
 835         },
 836         {
 837           "市名" : "钦州",
 838           "编码" : "101301101"
 839         },
 840         {
 841           "市名" : "河池",
 842           "编码" : "101301201"
 843         },
 844         {
 845           "市名" : "北海",
 846           "编码" : "101301301"
 847         },
 848         {
 849           "市名" : "崇左",
 850           "编码" : "101300201"
 851         },
 852         {
 853           "市名" : "贺州",
 854           "编码" : "101300701"
 855         }
 856       ],
 857       "省" : "广西"
 858     },
 859     {
 860       "市" : [
 861         {
 862           "市名" : "贵阳",
 863           "编码" : "101260101"
 864         },
 865         {
 866           "市名" : "安顺",
 867           "编码" : "101260301"
 868         },
 869         {
 870           "市名" : "都匀",
 871           "编码" : "101260401"
 872         },
 873         {
 874           "市名" : "兴义",
 875           "编码" : "101260906"
 876         },
 877         {
 878           "市名" : "铜仁",
 879           "编码" : "101260601"
 880         },
 881         {
 882           "市名" : "毕节",
 883           "编码" : "101260701"
 884         },
 885         {
 886           "市名" : "六盘水",
 887           "编码" : "101260801"
 888         },
 889         {
 890           "市名" : "遵义",
 891           "编码" : "101260201"
 892         },
 893         {
 894           "市名" : "凯里",
 895           "编码" : "101260501"
 896         }
 897       ],
 898       "省" : "贵州"
 899     },
 900     {
 901       "市" : [
 902         {
 903           "市名" : "昆明",
 904           "编码" : "101290101"
 905         },
 906         {
 907           "市名" : "红河",
 908           "编码" : "101290301"
 909         },
 910         {
 911           "市名" : "文山",
 912           "编码" : "101290601"
 913         },
 914         {
 915           "市名" : "玉溪",
 916           "编码" : "101290701"
 917         },
 918         {
 919           "市名" : "楚雄",
 920           "编码" : "101290801"
 921         },
 922         {
 923           "市名" : "普洱",
 924           "编码" : "101290901"
 925         },
 926         {
 927           "市名" : "昭通",
 928           "编码" : "101291001"
 929         },
 930         {
 931           "市名" : "临沧",
 932           "编码" : "101291101"
 933         },
 934         {
 935           "市名" : "怒江",
 936           "编码" : "101291201"
 937         },
 938         {
 939           "市名" : "香格里拉",
 940           "编码" : "101291301"
 941         },
 942         {
 943           "市名" : "丽江",
 944           "编码" : "101291401"
 945         },
 946         {
 947           "市名" : "德宏",
 948           "编码" : "101291501"
 949         },
 950         {
 951           "市名" : "景洪",
 952           "编码" : "101291601"
 953         },
 954         {
 955           "市名" : "大理",
 956           "编码" : "101290201"
 957         },
 958         {
 959           "市名" : "曲靖",
 960           "编码" : "101290401"
 961         },
 962         {
 963           "市名" : "保山",
 964           "编码" : "101290501"
 965         }
 966       ],
 967       "省" : "云南"
 968     },
 969     {
 970       "市" : [
 971         {
 972           "市名" : "呼和浩特",
 973           "编码" : "101080101"
 974         },
 975         {
 976           "市名" : "乌海",
 977           "编码" : "101080301"
 978         },
 979         {
 980           "市名" : "集宁",
 981           "编码" : "101080401"
 982         },
 983         {
 984           "市名" : "通辽",
 985           "编码" : "101080501"
 986         },
 987         {
 988           "市名" : "阿拉善左旗",
 989           "编码" : "101081201"
 990         },
 991         {
 992           "市名" : "鄂尔多斯",
 993           "编码" : "101080701"
 994         },
 995         {
 996           "市名" : "临河",
 997           "编码" : "101080801"
 998         },
 999         {
1000           "市名" : "锡林浩特",
1001           "编码" : "101080901"
1002         },
1003         {
1004           "市名" : "呼伦贝尔",
1005           "编码" : "101081000"
1006         },
1007         {
1008           "市名" : "乌兰浩特",
1009           "编码" : "101081101"
1010         },
1011         {
1012           "市名" : "包头",
1013           "编码" : "101080201"
1014         },
1015         {
1016           "市名" : "赤峰",
1017           "编码" : "101080601"
1018         }
1019       ],
1020       "省" : "内蒙古"
1021     },
1022     {
1023       "市" : [
1024         {
1025           "市名" : "南昌",
1026           "编码" : "101240101"
1027         },
1028         {
1029           "市名" : "上饶",
1030           "编码" : "101240301"
1031         },
1032         {
1033           "市名" : "抚州",
1034           "编码" : "101240401"
1035         },
1036         {
1037           "市名" : "宜春",
1038           "编码" : "101240501"
1039         },
1040         {
1041           "市名" : "鹰潭",
1042           "编码" : "101241101"
1043         },
1044         {
1045           "市名" : "赣州",
1046           "编码" : "101240701"
1047         },
1048         {
1049           "市名" : "景德镇",
1050           "编码" : "101240801"
1051         },
1052         {
1053           "市名" : "萍乡",
1054           "编码" : "101240901"
1055         },
1056         {
1057           "市名" : "新余",
1058           "编码" : "101241001"
1059         },
1060         {
1061           "市名" : "九江",
1062           "编码" : "101240201"
1063         },
1064         {
1065           "市名" : "吉安",
1066           "编码" : "101240601"
1067         }
1068       ],
1069       "省" : "江西"
1070     },
1071     {
1072       "市" : [
1073         {
1074           "市名" : "武汉",
1075           "编码" : "101200101"
1076         },
1077         {
1078           "市名" : "黄冈",
1079           "编码" : "101200501"
1080         },
1081         {
1082           "市名" : "荆州",
1083           "编码" : "101200801"
1084         },
1085         {
1086           "市名" : "宜昌",
1087           "编码" : "101200901"
1088         },
1089         {
1090           "市名" : "恩施",
1091           "编码" : "101201001"
1092         },
1093         {
1094           "市名" : "十堰",
1095           "编码" : "101201101"
1096         },
1097         {
1098           "市名" : "神农架",
1099           "编码" : "101201201"
1100         },
1101         {
1102           "市名" : "随州",
1103           "编码" : "101201301"
1104         },
1105         {
1106           "市名" : "荆门",
1107           "编码" : "101201401"
1108         },
1109         {
1110           "市名" : "天门",
1111           "编码" : "101201501"
1112         },
1113         {
1114           "市名" : "仙桃",
1115           "编码" : "101201601"
1116         },
1117         {
1118           "市名" : "潜江",
1119           "编码" : "101201701"
1120         },
1121         {
1122           "市名" : "襄樊",
1123           "编码" : "101200201"
1124         },
1125         {
1126           "市名" : "鄂州",
1127           "编码" : "101200301"
1128         },
1129         {
1130           "市名" : "孝感",
1131           "编码" : "101200401"
1132         },
1133         {
1134           "市名" : "黄石",
1135           "编码" : "101200601"
1136         },
1137         {
1138           "市名" : "咸宁",
1139           "编码" : "101200701"
1140         }
1141       ],
1142       "省" : "湖北"
1143     },
1144     {
1145       "市" : [
1146         {
1147           "市名" : "成都",
1148           "编码" : "101270101"
1149         },
1150         {
1151           "市名" : "自贡",
1152           "编码" : "101270301"
1153         },
1154         {
1155           "市名" : "绵阳",
1156           "编码" : "101270401"
1157         },
1158         {
1159           "市名" : "南充",
1160           "编码" : "101270501"
1161         },
1162         {
1163           "市名" : "达州",
1164           "编码" : "101270601"
1165         },
1166         {
1167           "市名" : "遂宁",
1168           "编码" : "101270701"
1169         },
1170         {
1171           "市名" : "广安",
1172           "编码" : "101270801"
1173         },
1174         {
1175           "市名" : "巴中",
1176           "编码" : "101270901"
1177         },
1178         {
1179           "市名" : "泸州",
1180           "编码" : "101271001"
1181         },
1182         {
1183           "市名" : "宜宾",
1184           "编码" : "101271101"
1185         },
1186         {
1187           "市名" : "内江",
1188           "编码" : "101271201"
1189         },
1190         {
1191           "市名" : "资阳",
1192           "编码" : "101271301"
1193         },
1194         {
1195           "市名" : "乐山",
1196           "编码" : "101271401"
1197         },
1198         {
1199           "市名" : "眉山",
1200           "编码" : "101271501"
1201         },
1202         {
1203           "市名" : "凉山",
1204           "编码" : "101271601"
1205         },
1206         {
1207           "市名" : "雅安",
1208           "编码" : "101271701"
1209         },
1210         {
1211           "市名" : "甘孜",
1212           "编码" : "101271801"
1213         },
1214         {
1215           "市名" : "阿坝",
1216           "编码" : "101271901"
1217         },
1218         {
1219           "市名" : "德阳",
1220           "编码" : "101272001"
1221         },
1222         {
1223           "市名" : "广元",
1224           "编码" : "101272101"
1225         },
1226         {
1227           "市名" : "攀枝花",
1228           "编码" : "101270201"
1229         }
1230       ],
1231       "省" : "四川"
1232     },
1233     {
1234       "市" : [
1235         {
1236           "市名" : "银川",
1237           "编码" : "101170101"
1238         },
1239         {
1240           "市名" : "中卫",
1241           "编码" : "101170501"
1242         },
1243         {
1244           "市名" : "固原",
1245           "编码" : "101170401"
1246         },
1247         {
1248           "市名" : "石嘴山",
1249           "编码" : "101170201"
1250         },
1251         {
1252           "市名" : "吴忠",
1253           "编码" : "101170301"
1254         }
1255       ],
1256       "省" : "宁夏"
1257     },
1258     {
1259       "市" : [
1260         {
1261           "市名" : "西宁",
1262           "编码" : "101150101"
1263         },
1264         {
1265           "市名" : "黄南",
1266           "编码" : "101150301"
1267         },
1268         {
1269           "市名" : "海北",
1270           "编码" : "101150801"
1271         },
1272         {
1273           "市名" : "果洛",
1274           "编码" : "101150501"
1275         },
1276         {
1277           "市名" : "玉树",
1278           "编码" : "101150601"
1279         },
1280         {
1281           "市名" : "海西",
1282           "编码" : "101150701"
1283         },
1284         {
1285           "市名" : "海东",
1286           "编码" : "101150201"
1287         },
1288         {
1289           "市名" : "海南",
1290           "编码" : "101150401"
1291         }
1292       ],
1293       "省" : "青海省"
1294     },
1295     {
1296       "市" : [
1297         {
1298           "市名" : "济南",
1299           "编码" : "101120101"
1300         },
1301         {
1302           "市名" : "潍坊",
1303           "编码" : "101120601"
1304         },
1305         {
1306           "市名" : "临沂",
1307           "编码" : "101120901"
1308         },
1309         {
1310           "市名" : "菏泽",
1311           "编码" : "101121001"
1312         },
1313         {
1314           "市名" : "滨州",
1315           "编码" : "101121101"
1316         },
1317         {
1318           "市名" : "东营",
1319           "编码" : "101121201"
1320         },
1321         {
1322           "市名" : "威海",
1323           "编码" : "101121301"
1324         },
1325         {
1326           "市名" : "枣庄",
1327           "编码" : "101121401"
1328         },
1329         {
1330           "市名" : "日照",
1331           "编码" : "101121501"
1332         },
1333         {
1334           "市名" : "莱芜",
1335           "编码" : "101121601"
1336         },
1337         {
1338           "市名" : "聊城",
1339           "编码" : "101121701"
1340         },
1341         {
1342           "市名" : "青岛",
1343           "编码" : "101120201"
1344         },
1345         {
1346           "市名" : "淄博",
1347           "编码" : "101120301"
1348         },
1349         {
1350           "市名" : "德州",
1351           "编码" : "101120401"
1352         },
1353         {
1354           "市名" : "烟台",
1355           "编码" : "101120501"
1356         },
1357         {
1358           "市名" : "济宁",
1359           "编码" : "101120701"
1360         },
1361         {
1362           "市名" : "泰安",
1363           "编码" : "101120801"
1364         }
1365       ],
1366       "省" : "山东"
1367     },
1368     {
1369       "市" : [
1370         {
1371           "市名" : "西安",
1372           "编码" : "101110101"
1373         },
1374         {
1375           "市名" : "延安",
1376           "编码" : "101110300"
1377         },
1378         {
1379           "市名" : "榆林",
1380           "编码" : "101110401"
1381         },
1382         {
1383           "市名" : "铜川",
1384           "编码" : "101111001"
1385         },
1386         {
1387           "市名" : "商洛",
1388           "编码" : "101110601"
1389         },
1390         {
1391           "市名" : "安康",
1392           "编码" : "101110701"
1393         },
1394         {
1395           "市名" : "汉中",
1396           "编码" : "101110801"
1397         },
1398         {
1399           "市名" : "宝鸡",
1400           "编码" : "101110901"
1401         },
1402         {
1403           "市名" : "咸阳",
1404           "编码" : "101110200"
1405         },
1406         {
1407           "市名" : "渭南",
1408           "编码" : "101110501"
1409         }
1410       ],
1411       "省" : "陕西省"
1412     },
1413     {
1414       "市" : [
1415         {
1416           "市名" : "太原",
1417           "编码" : "101100101"
1418         },
1419         {
1420           "市名" : "临汾",
1421           "编码" : "101100701"
1422         },
1423         {
1424           "市名" : "运城",
1425           "编码" : "101100801"
1426         },
1427         {
1428           "市名" : "朔州",
1429           "编码" : "101100901"
1430         },
1431         {
1432           "市名" : "忻州",
1433           "编码" : "101101001"
1434         },
1435         {
1436           "市名" : "长治",
1437           "编码" : "101100501"
1438         },
1439         {
1440           "市名" : "大同",
1441           "编码" : "101100201"
1442         },
1443         {
1444           "市名" : "阳泉",
1445           "编码" : "101100301"
1446         },
1447         {
1448           "市名" : "晋中",
1449           "编码" : "101100401"
1450         },
1451         {
1452           "市名" : "晋城",
1453           "编码" : "101100601"
1454         },
1455         {
1456           "市名" : "吕梁",
1457           "编码" : "101101100"
1458         }
1459       ],
1460       "省" : "山西"
1461     },
1462     {
1463       "市" : [
1464         {
1465           "市名" : "乌鲁木齐",
1466           "编码" : "101130101"
1467         },
1468         {
1469           "市名" : "石河子",
1470           "编码" : "101130301"
1471         },
1472         {
1473           "市名" : "昌吉",
1474           "编码" : "101130401"
1475         },
1476         {
1477           "市名" : "吐鲁番",
1478           "编码" : "101130501"
1479         },
1480         {
1481           "市名" : "库尔勒",
1482           "编码" : "101130601"
1483         },
1484         {
1485           "市名" : "阿拉尔",
1486           "编码" : "101130701"
1487         },
1488         {
1489           "市名" : "阿克苏",
1490           "编码" : "101130801"
1491         },
1492         {
1493           "市名" : "喀什",
1494           "编码" : "101130901"
1495         },
1496         {
1497           "市名" : "伊宁",
1498           "编码" : "101131001"
1499         },
1500         {
1501           "市名" : "塔城",
1502           "编码" : "101131101"
1503         },
1504         {
1505           "市名" : "哈密",
1506           "编码" : "101131201"
1507         },
1508         {
1509           "市名" : "和田",
1510           "编码" : "101131301"
1511         },
1512         {
1513           "市名" : "阿勒泰",
1514           "编码" : "101131401"
1515         },
1516         {
1517           "市名" : "阿图什",
1518           "编码" : "101131501"
1519         },
1520         {
1521           "市名" : "博乐",
1522           "编码" : "101131601"
1523         },
1524         {
1525           "市名" : "克拉玛依",
1526           "编码" : "101130201"
1527         }
1528       ],
1529       "省" : "新疆"
1530     },
1531     {
1532       "市" : [
1533         {
1534           "市名" : "拉萨",
1535           "编码" : "101140101"
1536         },
1537         {
1538           "市名" : "山南",
1539           "编码" : "101140301"
1540         },
1541         {
1542           "市名" : "阿里",
1543           "编码" : "101140701"
1544         },
1545         {
1546           "市名" : "昌都",
1547           "编码" : "101140501"
1548         },
1549         {
1550           "市名" : "那曲",
1551           "编码" : "101140601"
1552         },
1553         {
1554           "市名" : "日喀则",
1555           "编码" : "101140201"
1556         },
1557         {
1558           "市名" : "林芝",
1559           "编码" : "101140401"
1560         }
1561       ],
1562       "省" : "西藏"
1563     },
1564     {
1565       "市" : [
1566         {
1567           "市名" : "台北县",
1568           "编码" : "101340101"
1569         },
1570         {
1571           "市名" : "高雄",
1572           "编码" : "101340201"
1573         },
1574         {
1575           "市名" : "台中",
1576           "编码" : "101340401"
1577         }
1578       ],
1579       "省" : "台湾"
1580     },
1581     {
1582       "市" : [
1583         {
1584           "市名" : "海口",
1585           "编码" : "101310101"
1586         },
1587         {
1588           "市名" : "三亚",
1589           "编码" : "101310201"
1590         },
1591         {
1592           "市名" : "东方",
1593           "编码" : "101310202"
1594         },
1595         {
1596           "市名" : "临高",
1597           "编码" : "101310203"
1598         },
1599         {
1600           "市名" : "澄迈",
1601           "编码" : "101310204"
1602         },
1603         {
1604           "市名" : "儋州",
1605           "编码" : "101310205"
1606         },
1607         {
1608           "市名" : "昌江",
1609           "编码" : "101310206"
1610         },
1611         {
1612           "市名" : "白沙",
1613           "编码" : "101310207"
1614         },
1615         {
1616           "市名" : "琼中",
1617           "编码" : "101310208"
1618         },
1619         {
1620           "市名" : "定安",
1621           "编码" : "101310209"
1622         },
1623         {
1624           "市名" : "屯昌",
1625           "编码" : "101310210"
1626         },
1627         {
1628           "市名" : "琼海",
1629           "编码" : "101310211"
1630         },
1631         {
1632           "市名" : "文昌",
1633           "编码" : "101310212"
1634         },
1635         {
1636           "市名" : "保亭",
1637           "编码" : "101310214"
1638         },
1639         {
1640           "市名" : "万宁",
1641           "编码" : "101310215"
1642         },
1643         {
1644           "市名" : "陵水",
1645           "编码" : "101310216"
1646         },
1647         {
1648           "市名" : "西沙",
1649           "编码" : "101310217"
1650         },
1651         {
1652           "市名" : "南沙岛",
1653           "编码" : "101310220"
1654         },
1655         {
1656           "市名" : "乐东",
1657           "编码" : "101310221"
1658         },
1659         {
1660           "市名" : "五指山",
1661           "编码" : "101310222"
1662         },
1663         {
1664           "市名" : "琼山",
1665           "编码" : "101310102"
1666         }
1667       ],
1668       "省" : "海南省"
1669     },
1670     {
1671       "市" : [
1672         {
1673           "市名" : "长沙",
1674           "编码" : "101250101"
1675         },
1676         {
1677           "市名" : "株洲",
1678           "编码" : "101250301"
1679         },
1680         {
1681           "市名" : "衡阳",
1682           "编码" : "101250401"
1683         },
1684         {
1685           "市名" : "郴州",
1686           "编码" : "101250501"
1687         },
1688         {
1689           "市名" : "常德",
1690           "编码" : "101250601"
1691         },
1692         {
1693           "市名" : "益阳",
1694           "编码" : "101250700"
1695         },
1696         {
1697           "市名" : "娄底",
1698           "编码" : "101250801"
1699         },
1700         {
1701           "市名" : "邵阳",
1702           "编码" : "101250901"
1703         },
1704         {
1705           "市名" : "岳阳",
1706           "编码" : "101251001"
1707         },
1708         {
1709           "市名" : "张家界",
1710           "编码" : "101251101"
1711         },
1712         {
1713           "市名" : "怀化",
1714           "编码" : "101251201"
1715         },
1716         {
1717           "市名" : "黔阳",
1718           "编码" : "101251301"
1719         },
1720         {
1721           "市名" : "永州",
1722           "编码" : "101251401"
1723         },
1724         {
1725           "市名" : "吉首",
1726           "编码" : "101251501"
1727         },
1728         {
1729           "市名" : "湘潭",
1730           "编码" : "101250201"
1731         }
1732       ],
1733       "省" : "湖南"
1734     },
1735     {
1736       "市" : [
1737         {
1738           "市名" : "南京",
1739           "编码" : "101190101"
1740         },
1741         {
1742           "市名" : "镇江",
1743           "编码" : "101190301"
1744         },
1745         {
1746           "市名" : "苏州",
1747           "编码" : "101190401"
1748         },
1749         {
1750           "市名" : "南通",
1751           "编码" : "101190501"
1752         },
1753         {
1754           "市名" : "扬州",
1755           "编码" : "101190601"
1756         },
1757         {
1758           "市名" : "宿迁",
1759           "编码" : "101191301"
1760         },
1761         {
1762           "市名" : "徐州",
1763           "编码" : "101190801"
1764         },
1765         {
1766           "市名" : "淮安",
1767           "编码" : "101190901"
1768         },
1769         {
1770           "市名" : "连云港",
1771           "编码" : "101191001"
1772         },
1773         {
1774           "市名" : "常州",
1775           "编码" : "101191101"
1776         },
1777         {
1778           "市名" : "泰州",
1779           "编码" : "101191201"
1780         },
1781         {
1782           "市名" : "无锡",
1783           "编码" : "101190201"
1784         },
1785         {
1786           "市名" : "盐城",
1787           "编码" : "101190701"
1788         }
1789       ],
1790       "省" : "江苏"
1791     },
1792     {
1793       "市" : [
1794         {
1795           "市名" : "哈尔滨",
1796           "编码" : "101050101"
1797         },
1798         {
1799           "市名" : "牡丹江",
1800           "编码" : "101050301"
1801         },
1802         {
1803           "市名" : "佳木斯",
1804           "编码" : "101050401"
1805         },
1806         {
1807           "市名" : "绥化",
1808           "编码" : "101050501"
1809         },
1810         {
1811           "市名" : "黑河",
1812           "编码" : "101050601"
1813         },
1814         {
1815           "市名" : "双鸭山",
1816           "编码" : "101051301"
1817         },
1818         {
1819           "市名" : "伊春",
1820           "编码" : "101050801"
1821         },
1822         {
1823           "市名" : "大庆",
1824           "编码" : "101050901"
1825         },
1826         {
1827           "市名" : "七台河",
1828           "编码" : "101051002"
1829         },
1830         {
1831           "市名" : "鸡西",
1832           "编码" : "101051101"
1833         },
1834         {
1835           "市名" : "鹤岗",
1836           "编码" : "101051201"
1837         },
1838         {
1839           "市名" : "齐齐哈尔",
1840           "编码" : "101050201"
1841         },
1842         {
1843           "市名" : "大兴安岭",
1844           "编码" : "101050701"
1845         }
1846       ],
1847       "省" : "黑龙江"
1848     },
1849     {
1850       "市" : [
1851         {
1852           "市名" : "长春",
1853           "编码" : "101060101"
1854         },
1855         {
1856           "市名" : "延吉",
1857           "编码" : "101060301"
1858         },
1859         {
1860           "市名" : "四平",
1861           "编码" : "101060401"
1862         },
1863         {
1864           "市名" : "白山",
1865           "编码" : "101060901"
1866         },
1867         {
1868           "市名" : "白城",
1869           "编码" : "101060601"
1870         },
1871         {
1872           "市名" : "辽源",
1873           "编码" : "101060701"
1874         },
1875         {
1876           "市名" : "松原",
1877           "编码" : "101060801"
1878         },
1879         {
1880           "市名" : "吉林",
1881           "编码" : "101060201"
1882         },
1883         {
1884           "市名" : "通化",
1885           "编码" : "101060501"
1886         }
1887       ],
1888       "省" : "吉林"
1889     },
1890     {
1891       "市" : [
1892         {
1893           "市名" : "沈阳",
1894           "编码" : "101070101"
1895         },
1896         {
1897           "市名" : "鞍山",
1898           "编码" : "101070301"
1899         },
1900         {
1901           "市名" : "抚顺",
1902           "编码" : "101070401"
1903         },
1904         {
1905           "市名" : "本溪",
1906           "编码" : "101070501"
1907         },
1908         {
1909           "市名" : "丹东",
1910           "编码" : "101070601"
1911         },
1912         {
1913           "市名" : "葫芦岛",
1914           "编码" : "101071401"
1915         },
1916         {
1917           "市名" : "营口",
1918           "编码" : "101070801"
1919         },
1920         {
1921           "市名" : "阜新",
1922           "编码" : "101070901"
1923         },
1924         {
1925           "市名" : "辽阳",
1926           "编码" : "101071001"
1927         },
1928         {
1929           "市名" : "铁岭",
1930           "编码" : "101071101"
1931         },
1932         {
1933           "市名" : "朝阳",
1934           "编码" : "101071201"
1935         },
1936         {
1937           "市名" : "盘锦",
1938           "编码" : "101071301"
1939         },
1940         {
1941           "市名" : "大连",
1942           "编码" : "101070201"
1943         },
1944         {
1945           "市名" : "锦州",
1946           "编码" : "101070701"
1947         }
1948       ],
1949       "省" : "辽宁"
1950     }
1951   ]
1952 }

 

posted @ 2018-09-26 17:54  志远丶  阅读(404)  评论(0编辑  收藏  举报