前段時間做項目,需要把全國省市的兩個XML文件整合成一個JSON格式的數據,手寫的話覺得數據太多了,而且容易出錯,於是就想到了用Ajax嵌套的方法來解決,就想平時用Ajax的方法直接嵌套,都會先讀出外面Ajax的內容,然後才讀取嵌套在Ajax裡面的內容,後面經網上查找資料,加個async:false這個Ajax參數就行了,下面是貼代碼:
<script type="text/javascript"> $(function () { $.ajax({ type: "get", url: "/XmlData/Provinces.xml", datatype: "xml", success: function (xml) { $("body").append("{"); $(xml).find("Provinces > Province").each(function (i) { $("body").append("{\"PID\":\"" + $(this).attr("ID") + "\",\"ProvinceName\": \"" + $(this).attr("ProvinceName") + "\",\"Citys\":["); //根據省份,請求讀取該省的市 GetCitys($(this).attr("ID")); //第二個請求end $("body").append("]},<br/>"); }); } }); }) //第二次請求 function GetCitys(pid) { $.ajax({ type: "get", url: "/XmlData/Cities.xml", datatype: "xml", async: false,//注意!!這個為必要的參數,不然這個會在上面的Ajax請求後才執行 success: function (xml) { $(xml).find("Cities > City[PID=" + pid + "]").each(function (i) { $("body").append("{\"CityID\":\"" + $(this).attr("ID") + "\",\"CityName\":\"" + $(this).attr("CityName") + "\"},"); }); } }); } </script>
記得在前面加上jq庫,
下面把得到的全國省市的JSON數據貼出來,希望以後能用到:
{{\"ProvinceID\":\"1\",\"Province\":\"北京市\",\"City\":[{\"CityID\":\"1\",\"CityName\":\"北京市\"}]}, {\"ProvinceID\":\"2\",\"Province\":\"天津市\",\"City\":[{\"CityID\":\"2\",\"CityName\":\"天津市\"}]}, {\"ProvinceID\":\"3\",\"Province\":\"河北省\",\"City\":[{\"CityID\":\"3\",\"CityName\":\"石家莊市\"},{\"CityID\":\"4\",\"CityName\":\"唐山市\"},{\"CityID\":\"5\",\"CityName\":\"秦皇島市\"},{\"CityID\":\"6\",\"CityName\":\"邯鄲市\"},{\"CityID\":\"7\",\"CityName\":\"邢台市\"},{\"CityID\":\"8\",\"CityName\":\"保定市\"},{\"CityID\":\"9\",\"CityName\":\"張家口市\"},{\"CityID\":\"10\",\"CityName\":\"承德市\"},{\"CityID\":\"11\",\"CityName\":\"滄州市\"},{\"CityID\":\"12\",\"CityName\":\"廊坊市\"},{\"CityID\":\"13\",\"CityName\":\"衡水市\"}]}, {\"ProvinceID\":\"4\",\"Province\":\"山西省\",\"City\":[{\"CityID\":\"14\",\"CityName\":\"太原市\"},{\"CityID\":\"15\",\"CityName\":\"大同市\"},{\"CityID\":\"16\",\"CityName\":\"陽泉市\"},{\"CityID\":\"17\",\"CityName\":\"長治市\"},{\"CityID\":\"18\",\"CityName\":\"晉城市\"},{\"CityID\":\"19\",\"CityName\":\"朔州市\"},{\"CityID\":\"20\",\"CityName\":\"晉中市\"},{\"CityID\":\"21\",\"CityName\":\"運城市\"},{\"CityID\":\"22\",\"CityName\":\"忻州市\"},{\"CityID\":\"23\",\"CityName\":\"臨汾市\"},{\"CityID\":\"24\",\"CityName\":\"呂梁市\"}]}, {\"ProvinceID\":\"5\",\"Province\":\"內蒙古自治區\",\"City\":[{\"CityID\":\"25\",\"CityName\":\"呼和浩特市\"},{\"CityID\":\"26\",\"CityName\":\"包頭市\"},{\"CityID\":\"27\",\"CityName\":\"烏海市\"},{\"CityID\":\"28\",\"CityName\":\"赤峰市\"},{\"CityID\":\"29\",\"CityName\":\"通遼市\"},{\"CityID\":\"30\",\"CityName\":\"鄂爾多斯市\"},{\"CityID\":\"31\",\"CityName\":\"呼倫貝爾市\"},{\"CityID\":\"32\",\"CityName\":\"巴彥淖爾市\"},{\"CityID\":\"33\",\"CityName\":\"烏蘭察布市\"},{\"CityID\":\"34\",\"CityName\":\"興安盟\"},{\"CityID\":\"35\",\"CityName\":\"錫林郭勒盟\"},{\"CityID\":\"36\",\"CityName\":\"阿拉善盟\"}]}, {\"ProvinceID\":\"6\",\"Province\":\"遼寧省\",\"City\":[{\"CityID\":\"37\",\"CityName\":\"沈陽市\"},{\"CityID\":\"38\",\"CityName\":\"大連市\"},{\"CityID\":\"39\",\"CityName\":\"鞍山市\"},{\"CityID\":\"40\",\"CityName\":\"撫順市\"},{\"CityID\":\"41\",\"CityName\":\"本溪市\"},{\"CityID\":\"42\",\"CityName\":\"丹東市\"},{\"CityID\":\"43\",\"CityName\":\"錦州市\"},{\"CityID\":\"44\",\"CityName\":\"營口市\"},{\"CityID\":\"45\",\"CityName\":\"阜新市\"},{\"CityID\":\"46\",\"CityName\":\"遼陽市\"},{\"CityID\":\"47\",\"CityName\":\"盤錦市\"},{\"CityID\":\"48\",\"CityName\":\"鐵嶺市\"},{\"CityID\":\"49\",\"CityName\":\"朝陽市\"},{\"CityID\":\"50\",\"CityName\":\"葫蘆島市\"}]}, {\"ProvinceID\":\"7\",\"Province\":\"吉林省\",\"City\":[{\"CityID\":\"51\",\"CityName\":\"長春市\"},{\"CityID\":\"52\",\"CityName\":\"吉林市\"},{\"CityID\":\"53\",\"CityName\":\"四平市\"},{\"CityID\":\"54\",\"CityName\":\"遼源市\"},{\"CityID\":\"55\",\"CityName\":\"通化市\"},{\"CityID\":\"56\",\"CityName\":\"白山市\"},{\"CityID\":\"57\",\"CityName\":\"松原市\"},{\"CityID\":\"58\",\"CityName\":\"白城市\"},{\"CityID\":\"59\",\"CityName\":\"延邊朝鮮族自治州\"}]}, {\"ProvinceID\":\"8\",\"Province\":\"黑龍江省\",\"City\":[{\"CityID\":\"60\",\"CityName\":\"哈爾濱市\"},{\"CityID\":\"61\",\"CityName\":\"齊齊哈爾市\"},{\"CityID\":\"62\",\"CityName\":\"雞西市\"},{\"CityID\":\"63\",\"CityName\":\"鶴崗市\"},{\"CityID\":\"64\",\"CityName\":\"雙鴨山市\"},{\"CityID\":\"65\",\"CityName\":\"大慶市\"},{\"CityID\":\"66\",\"CityName\":\"伊春市\"},{\"CityID\":\"67\",\"CityName\":\"佳木斯市\"},{\"CityID\":\"68\",\"CityName\":\"七台河市\"},{\"CityID\":\"69\",\"CityName\":\"牡丹江市\"},{\"CityID\":\"70\",\"CityName\":\"黑河市\"},{\"CityID\":\"71\",\"CityName\":\"綏化市\"},{\"CityID\":\"72\",\"CityName\":\"大興安嶺地區\"}]}, {\"ProvinceID\":\"9\",\"Province\":\"上海市\",\"City\":[{\"CityID\":\"73\",\"CityName\":\"上海市\"}]}, {\"ProvinceID\":\"10\",\"Province\":\"江蘇省\",\"City\":[{\"CityID\":\"74\",\"CityName\":\"南京市\"},{\"CityID\":\"75\",\"CityName\":\"無錫市\"},{\"CityID\":\"76\",\"CityName\":\"徐州市\"},{\"CityID\":\"77\",\"CityName\":\"常州市\"},{\"CityID\":\"78\",\"CityName\":\"蘇州市\"},{\"CityID\":\"79\",\"CityName\":\"南通市\"},{\"CityID\":\"80\",\"CityName\":\"連雲港市\"},{\"CityID\":\"81\",\"CityName\":\"淮安市\"},{\"CityID\":\"82\",\"CityName\":\"鹽城市\"},{\"CityID\":\"83\",\"CityName\":\"揚州市\"},{\"CityID\":\"84\",\"CityName\":\"鎮江市\"},{\"CityID\":\"85\",\"CityName\":\"泰州市\"},{\"CityID\":\"86\",\"CityName\":\"宿遷市\"}]}, {\"ProvinceID\":\"11\",\"Province\":\"浙江省\",\"City\":[{\"CityID\":\"87\",\"CityName\":\"杭州市\"},{\"CityID\":\"88\",\"CityName\":\"寧波市\"},{\"CityID\":\"89\",\"CityName\":\"溫州市\"},{\"CityID\":\"90\",\"CityName\":\"嘉興市\"},{\"CityID\":\"91\",\"CityName\":\"湖州市\"},{\"CityID\":\"92\",\"CityName\":\"紹興市\"},{\"CityID\":\"93\",\"CityName\":\"金華市\"},{\"CityID\":\"94\",\"CityName\":\"衢州市\"},{\"CityID\":\"95\",\"CityName\":\"舟山市\"},{\"CityID\":\"96\",\"CityName\":\"台州市\"},{\"CityID\":\"97\",\"CityName\":\"麗水市\"}]}, {\"ProvinceID\":\"12\",\"Province\":\"安徽省\",\"City\":[{\"CityID\":\"98\",\"CityName\":\"合肥市\"},{\"CityID\":\"99\",\"CityName\":\"蕪湖市\"},{\"CityID\":\"100\",\"CityName\":\"蚌埠市\"},{\"CityID\":\"101\",\"CityName\":\"淮南市\"},{\"CityID\":\"102\",\"CityName\":\"馬鞍山市\"},{\"CityID\":\"103\",\"CityName\":\"淮北市\"},{\"CityID\":\"104\",\"CityName\":\"銅陵市\"},{\"CityID\":\"105\",\"CityName\":\"安慶市\"},{\"CityID\":\"106\",\"CityName\":\"黃山市\"},{\"CityID\":\"107\",\"CityName\":\"滁州市\"},{\"CityID\":\"108\",\"CityName\":\"阜陽市\"},{\"CityID\":\"109\",\"CityName\":\"宿州市\"},{\"CityID\":\"110\",\"CityName\":\"巢湖市\"},{\"CityID\":\"111\",\"CityName\":\"六安市\"},{\"CityID\":\"112\",\"CityName\":\"亳州市\"},{\"CityID\":\"113\",\"CityName\":\"池州市\"},{\"CityID\":\"114\",\"CityName\":\"宣城市\"}]}, {\"ProvinceID\":\"13\",\"Province\":\"福建省\",\"City\":[{\"CityID\":\"115\",\"CityName\":\"福州市\"},{\"CityID\":\"116\",\"CityName\":\"廈門市\"},{\"CityID\":\"117\",\"CityName\":\"莆田市\"},{\"CityID\":\"118\",\"CityName\":\"三明市\"},{\"CityID\":\"119\",\"CityName\":\"泉州市\"},{\"CityID\":\"120\",\"CityName\":\"漳州市\"},{\"CityID\":\"121\",\"CityName\":\"南平市\"},{\"CityID\":\"122\",\"CityName\":\"龍巖市\"},{\"CityID\":\"123\",\"CityName\":\"寧德市\"}]}, {\"ProvinceID\":\"14\",\"Province\":\"江西省\",\"City\":[{\"CityID\":\"124\",\"CityName\":\"南昌市\"},{\"CityID\":\"125\",\"CityName\":\"景德鎮市\"},{\"CityID\":\"126\",\"CityName\":\"萍鄉市\"},{\"CityID\":\"127\",\"CityName\":\"九江市\"},{\"CityID\":\"128\",\"CityName\":\"新余市\"},{\"CityID\":\"129\",\"CityName\":\"鷹潭市\"},{\"CityID\":\"130\",\"CityName\":\"贛州市\"},{\"CityID\":\"131\",\"CityName\":\"吉安市\"},{\"CityID\":\"132\",\"CityName\":\"宜春市\"},{\"CityID\":\"133\",\"CityName\":\"撫州市\"},{\"CityID\":\"134\",\"CityName\":\"上饒市\"}]}, {\"ProvinceID\":\"15\",\"Province\":\"山東省\",\"City\":[{\"CityID\":\"135\",\"CityName\":\"濟南市\"},{\"CityID\":\"136\",\"CityName\":\"青島市\"},{\"CityID\":\"137\",\"CityName\":\"淄博市\"},{\"CityID\":\"138\",\"CityName\":\"棗莊市\"},{\"CityID\":\"139\",\"CityName\":\"東營市\"},{\"CityID\":\"140\",\"CityName\":\"煙台市\"},{\"CityID\":\"141\",\"CityName\":\"濰坊市\"},{\"CityID\":\"142\",\"CityName\":\"濟寧市\"},{\"CityID\":\"143\",\"CityName\":\"泰安市\"},{\"CityID\":\"144\",\"CityName\":\"威海市\"},{\"CityID\":\"145\",\"CityName\":\"日照市\"},{\"CityID\":\"146\",\"CityName\":\"萊蕪市\"},{\"CityID\":\"147\",\"CityName\":\"臨沂市\"},{\"CityID\":\"148\",\"CityName\":\"德州市\"},{\"CityID\":\"149\",\"CityName\":\"聊城市\"},{\"CityID\":\"150\",\"CityName\":\"濱州市\"},{\"CityID\":\"151\",\"CityName\":\"荷澤市\"}]}, {\"ProvinceID\":\"16\",\"Province\":\"河南省\",\"City\":[{\"CityID\":\"152\",\"CityName\":\"鄭州市\"},{\"CityID\":\"153\",\"CityName\":\"開封市\"},{\"CityID\":\"154\",\"CityName\":\"洛陽市\"},{\"CityID\":\"155\",\"CityName\":\"平頂山市\"},{\"CityID\":\"156\",\"CityName\":\"安陽市\"},{\"CityID\":\"157\",\"CityName\":\"鶴壁市\"},{\"CityID\":\"158\",\"CityName\":\"新鄉市\"},{\"CityID\":\"159\",\"CityName\":\"焦作市\"},{\"CityID\":\"160\",\"CityName\":\"濮陽市\"},{\"CityID\":\"161\",\"CityName\":\"許昌市\"},{\"CityID\":\"162\",\"CityName\":\"漯河市\"},{\"CityID\":\"163\",\"CityName\":\"三門峽市\"},{\"CityID\":\"164\",\"CityName\":\"南陽市\"},{\"CityID\":\"165\",\"CityName\":\"商丘市\"},{\"CityID\":\"166\",\"CityName\":\"信陽市\"},{\"CityID\":\"167\",\"CityName\":\"周口市\"},{\"CityID\":\"168\",\"CityName\":\"駐馬店市\"}]}, {\"ProvinceID\":\"17\",\"Province\":\"湖北省\",\"City\":[{\"CityID\":\"169\",\"CityName\":\"武漢市\"},{\"CityID\":\"170\",\"CityName\":\"黃石市\"},{\"CityID\":\"171\",\"CityName\":\"十堰市\"},{\"CityID\":\"172\",\"CityName\":\"宜昌市\"},{\"CityID\":\"173\",\"CityName\":\"襄樊市\"},{\"CityID\":\"174\",\"CityName\":\"鄂州市\"},{\"CityID\":\"175\",\"CityName\":\"荊門市\"},{\"CityID\":\"176\",\"CityName\":\"孝感市\"},{\"CityID\":\"177\",\"CityName\":\"荊州市\"},{\"CityID\":\"178\",\"CityName\":\"黃岡市\"},{\"CityID\":\"179\",\"CityName\":\"鹹寧市\"},{\"CityID\":\"180\",\"CityName\":\"隨州市\"},{\"CityID\":\"181\",\"CityName\":\"恩施土家族苗族自治州\"},{\"CityID\":\"182\",\"CityName\":\"神農架\"}]}, {\"ProvinceID\":\"18\",\"Province\":\"湖南省\",\"City\":[{\"CityID\":\"183\",\"CityName\":\"長沙市\"},{\"CityID\":\"184\",\"CityName\":\"株洲市\"},{\"CityID\":\"185\",\"CityName\":\"湘潭市\"},{\"CityID\":\"186\",\"CityName\":\"衡陽市\"},{\"CityID\":\"187\",\"CityName\":\"邵陽市\"},{\"CityID\":\"188\",\"CityName\":\"岳陽市\"},{\"CityID\":\"189\",\"CityName\":\"常德市\"},{\"CityID\":\"190\",\"CityName\":\"張家界市\"},{\"CityID\":\"191\",\"CityName\":\"益陽市\"},{\"CityID\":\"192\",\"CityName\":\"郴州市\"},{\"CityID\":\"193\",\"CityName\":\"永州市\"},{\"CityID\":\"194\",\"CityName\":\"懷化市\"},{\"CityID\":\"195\",\"CityName\":\"婁底市\"},{\"CityID\":\"196\",\"CityName\":\"湘西土家族苗族自治州\"}]}, {\"ProvinceID\":\"19\",\"Province\":\"廣東省\",\"City\":[{\"CityID\":\"197\",\"CityName\":\"廣州市\"},{\"CityID\":\"198\",\"CityName\":\"韶關市\"},{\"CityID\":\"199\",\"CityName\":\"深圳市\"},{\"CityID\":\"200\",\"CityName\":\"珠海市\"},{\"CityID\":\"201\",\"CityName\":\"汕頭市\"},{\"CityID\":\"202\",\"CityName\":\"佛山市\"},{\"CityID\":\"203\",\"CityName\":\"江門市\"},{\"CityID\":\"204\",\"CityName\":\"湛江市\"},{\"CityID\":\"205\",\"CityName\":\"茂名市\"},{\"CityID\":\"206\",\"CityName\":\"肇慶市\"},{\"CityID\":\"207\",\"CityName\":\"惠州市\"},{\"CityID\":\"208\",\"CityName\":\"梅州市\"},{\"CityID\":\"209\",\"CityName\":\"汕尾市\"},{\"CityID\":\"210\",\"CityName\":\"河源市\"},{\"CityID\":\"211\",\"CityName\":\"陽江市\"},{\"CityID\":\"212\",\"CityName\":\"清遠市\"},{\"CityID\":\"213\",\"CityName\":\"東莞市\"},{\"CityID\":\"214\",\"CityName\":\"中山市\"},{\"CityID\":\"215\",\"CityName\":\"潮州市\"},{\"CityID\":\"216\",\"CityName\":\"揭陽市\"},{\"CityID\":\"217\",\"CityName\":\"雲浮市\"}]}, {\"ProvinceID\":\"20\",\"Province\":\"廣西壯族自治區\",\"City\":[{\"CityID\":\"218\",\"CityName\":\"南寧市\"},{\"CityID\":\"219\",\"CityName\":\"柳州市\"},{\"CityID\":\"220\",\"CityName\":\"桂林市\"},{\"CityID\":\"221\",\"CityName\":\"梧州市\"},{\"CityID\":\"222\",\"CityName\":\"北海市\"},{\"CityID\":\"223\",\"CityName\":\"防城港市\"},{\"CityID\":\"224\",\"CityName\":\"欽州市\"},{\"CityID\":\"225\",\"CityName\":\"貴港市\"},{\"CityID\":\"226\",\"CityName\":\"玉林市\"},{\"CityID\":\"227\",\"CityName\":\"百色市\"},{\"CityID\":\"228\",\"CityName\":\"賀州市\"},{\"CityID\":\"229\",\"CityName\":\"河池市\"},{\"CityID\":\"230\",\"CityName\":\"來賓市\"},{\"CityID\":\"231\",\"CityName\":\"崇左市\"}]}, {\"ProvinceID\":\"21\",\"Province\":\"海南省\",\"City\":[{\"CityID\":\"232\",\"CityName\":\"海口市\"},{\"CityID\":\"233\",\"CityName\":\"三亞市\"}]}, {\"ProvinceID\":\"22\",\"Province\":\"重慶市\",\"City\":[{\"CityID\":\"234\",\"CityName\":\"重慶市\"}]}, {\"ProvinceID\":\"23\",\"Province\":\"四川省\",\"City\":[{\"CityID\":\"235\",\"CityName\":\"成都市\"},{\"CityID\":\"236\",\"CityName\":\"自貢市\"},{\"CityID\":\"237\",\"CityName\":\"攀枝花市\"},{\"CityID\":\"238\",\"CityName\":\"泸州市\"},{\"CityID\":\"239\",\"CityName\":\"德陽市\"},{\"CityID\":\"240\",\"CityName\":\"綿陽市\"},{\"CityID\":\"241\",\"CityName\":\"廣元市\"},{\"CityID\":\"242\",\"CityName\":\"遂寧市\"},{\"CityID\":\"243\",\"CityName\":\"內江市\"},{\"CityID\":\"244\",\"CityName\":\"樂山市\"},{\"CityID\":\"245\",\"CityName\":\"南充市\"},{\"CityID\":\"246\",\"CityName\":\"眉山市\"},{\"CityID\":\"247\",\"CityName\":\"宜賓市\"},{\"CityID\":\"248\",\"CityName\":\"廣安市\"},{\"CityID\":\"249\",\"CityName\":\"達州市\"},{\"CityID\":\"250\",\"CityName\":\"雅安市\"},{\"CityID\":\"251\",\"CityName\":\"巴中市\"},{\"CityID\":\"252\",\"CityName\":\"資陽市\"},{\"CityID\":\"253\",\"CityName\":\"阿壩藏族羌族自治州\"},{\"CityID\":\"254\",\"CityName\":\"甘孜藏族自治州\"},{\"CityID\":\"255\",\"CityName\":\"涼山彝族自治州\"}]}, {\"ProvinceID\":\"24\",\"Province\":\"貴州省\",\"City\":[{\"CityID\":\"256\",\"CityName\":\"貴陽市\"},{\"CityID\":\"257\",\"CityName\":\"六盤水市\"},{\"CityID\":\"258\",\"CityName\":\"遵義市\"},{\"CityID\":\"259\",\"CityName\":\"安順市\"},{\"CityID\":\"260\",\"CityName\":\"銅仁地區\"},{\"CityID\":\"261\",\"CityName\":\"黔西南布依族苗族自治州\"},{\"CityID\":\"262\",\"CityName\":\"畢節地區\"},{\"CityID\":\"263\",\"CityName\":\"黔東南苗族侗族自治州\"},{\"CityID\":\"264\",\"CityName\":\"黔南布依族苗族自治州\"}]}, {\"ProvinceID\":\"25\",\"Province\":\"雲南省\",\"City\":[{\"CityID\":\"265\",\"CityName\":\"昆明市\"},{\"CityID\":\"266\",\"CityName\":\"曲靖市\"},{\"CityID\":\"267\",\"CityName\":\"玉溪市\"},{\"CityID\":\"268\",\"CityName\":\"保山市\"},{\"CityID\":\"269\",\"CityName\":\"昭通市\"},{\"CityID\":\"270\",\"CityName\":\"麗江市\"},{\"CityID\":\"271\",\"CityName\":\"思茅市\"},{\"CityID\":\"272\",\"CityName\":\"臨滄市\"},{\"CityID\":\"273\",\"CityName\":\"楚雄彝族自治州\"},{\"CityID\":\"274\",\"CityName\":\"紅河哈尼族彝族自治州\"},{\"CityID\":\"275\",\"CityName\":\"文山壯族苗族自治州\"},{\"CityID\":\"276\",\"CityName\":\"西雙版納傣族自治州\"},{\"CityID\":\"277\",\"CityName\":\"大理白族自治州\"},{\"CityID\":\"278\",\"CityName\":\"德宏傣族景頗族自治州\"},{\"CityID\":\"279\",\"CityName\":\"怒江傈僳族自治州\"},{\"CityID\":\"280\",\"CityName\":\"迪慶藏族自治州\"}]}, {\"ProvinceID\":\"26\",\"Province\":\"西藏自治區\",\"City\":[{\"CityID\":\"281\",\"CityName\":\"拉薩市\"},{\"CityID\":\"282\",\"CityName\":\"昌都地區\"},{\"CityID\":\"283\",\"CityName\":\"山南地區\"},{\"CityID\":\"284\",\"CityName\":\"日喀則地區\"},{\"CityID\":\"285\",\"CityName\":\"那曲地區\"},{\"CityID\":\"286\",\"CityName\":\"阿裡地區\"},{\"CityID\":\"287\",\"CityName\":\"林芝地區\"}]}, {\"ProvinceID\":\"27\",\"Province\":\"陝西省\",\"City\":[{\"CityID\":\"288\",\"CityName\":\"西安市\"},{\"CityID\":\"289\",\"CityName\":\"銅川市\"},{\"CityID\":\"290\",\"CityName\":\"寶雞市\"},{\"CityID\":\"291\",\"CityName\":\"鹹陽市\"},{\"CityID\":\"292\",\"CityName\":\"渭南市\"},{\"CityID\":\"293\",\"CityName\":\"延安市\"},{\"CityID\":\"294\",\"CityName\":\"漢中市\"},{\"CityID\":\"295\",\"CityName\":\"榆林市\"},{\"CityID\":\"296\",\"CityName\":\"安康市\"},{\"CityID\":\"297\",\"CityName\":\"商洛市\"}]}, {\"ProvinceID\":\"28\",\"Province\":\"甘肅省\",\"City\":[{\"CityID\":\"298\",\"CityName\":\"蘭州市\"},{\"CityID\":\"299\",\"CityName\":\"嘉峪關市\"},{\"CityID\":\"300\",\"CityName\":\"金昌市\"},{\"CityID\":\"301\",\"CityName\":\"白銀市\"},{\"CityID\":\"302\",\"CityName\":\"天水市\"},{\"CityID\":\"303\",\"CityName\":\"武威市\"},{\"CityID\":\"304\",\"CityName\":\"張掖市\"},{\"CityID\":\"305\",\"CityName\":\"平涼市\"},{\"CityID\":\"306\",\"CityName\":\"酒泉市\"},{\"CityID\":\"307\",\"CityName\":\"慶陽市\"},{\"CityID\":\"308\",\"CityName\":\"定西市\"},{\"CityID\":\"309\",\"CityName\":\"隴南市\"},{\"CityID\":\"310\",\"CityName\":\"臨夏回族自治州\"},{\"CityID\":\"311\",\"CityName\":\"甘南藏族自治州\"}]}, {\"ProvinceID\":\"29\",\"Province\":\"青海省\",\"City\":[{\"CityID\":\"312\",\"CityName\":\"西寧市\"},{\"CityID\":\"313\",\"CityName\":\"海東地區\"},{\"CityID\":\"314\",\"CityName\":\"海北藏族自治州\"},{\"CityID\":\"315\",\"CityName\":\"黃南藏族自治州\"},{\"CityID\":\"316\",\"CityName\":\"海南藏族自治州\"},{\"CityID\":\"317\",\"CityName\":\"果洛藏族自治州\"},{\"CityID\":\"318\",\"CityName\":\"玉樹藏族自治州\"},{\"CityID\":\"319\",\"CityName\":\"海西蒙古族藏族自治州\"}]}, {\"ProvinceID\":\"30\",\"Province\":\"寧夏回族自治區\",\"City\":[{\"CityID\":\"320\",\"CityName\":\"銀川市\"},{\"CityID\":\"321\",\"CityName\":\"石嘴山市\"},{\"CityID\":\"322\",\"CityName\":\"吳忠市\"},{\"CityID\":\"323\",\"CityName\":\"固原市\"},{\"CityID\":\"324\",\"CityName\":\"中衛市\"}]}, {\"ProvinceID\":\"31\",\"Province\":\"新疆維吾爾自治區\",\"City\":[{\"CityID\":\"325\",\"CityName\":\"烏魯木齊市\"},{\"CityID\":\"326\",\"CityName\":\"克拉瑪依市\"},{\"CityID\":\"327\",\"CityName\":\"吐魯番地區\"},{\"CityID\":\"328\",\"CityName\":\"哈密地區\"},{\"CityID\":\"329\",\"CityName\":\"昌吉回族自治州\"},{\"CityID\":\"330\",\"CityName\":\"博爾塔拉蒙古自治州\"},{\"CityID\":\"331\",\"CityName\":\"巴音郭楞蒙古自治州\"},{\"CityID\":\"332\",\"CityName\":\"阿克蘇地區\"},{\"CityID\":\"333\",\"CityName\":\"克孜勒蘇柯爾克孜自治州\"},{\"CityID\":\"334\",\"CityName\":\"喀什地區\"},{\"CityID\":\"335\",\"CityName\":\"和田地區\"},{\"CityID\":\"336\",\"CityName\":\"伊犁哈薩克自治州\"},{\"CityID\":\"337\",\"CityName\":\"塔城地區\"},{\"CityID\":\"338\",\"CityName\":\"阿勒泰地區\"},{\"CityID\":\"339\",\"CityName\":\"石河子市\"},{\"CityID\":\"340\",\"CityName\":\"阿拉爾市\"},{\"CityID\":\"341\",\"CityName\":\"圖木舒克市\"},{\"CityID\":\"342\",\"CityName\":\"五家渠市\"}]}, {\"ProvinceID\":\"32\",\"Province\":\"香港特別行政區\",\"City\":[{\"CityID\":\"343\",\"CityName\":\"香港特別行政區\"}]}, {\"ProvinceID\":\"33\",\"Province\":\"澳門特別行政區\",\"City\":[{\"CityID\":\"344\",\"CityName\":\"澳門特別行政區\"}]}, {\"ProvinceID\":\"34\",\"Province\":\"台灣省\",\"City\":[{\"CityID\":\"345\",\"CityName\":\"台灣省\"}]}}