验证中...
开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约
片段 1 片段 2 片段 3 片段 4 片段 5 片段 6 片段 7 片段 8
JS代码
JS代码
ajax1.js
原始数据 复制代码
function getxhr() {
try{
var xhr = new XMLHttpRequest();
return xhr;
}catch (e) {
try{
return new ActiveXObject('Mexm12.XMLHTMP')
}catch (e){
try{
return new ActiveXObject('Microsoft.XMLHTML')
}catch (e) {
alert('请更换浏览器');
throw e;
}
}
}
}
function funajax() {
var value = document.getElementById('username1').value;
var xhr = getxhr();
xhr.open('post','ajax1');
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send("username3="+ value);
xhr.onreadystatechange = function () {
if(xhr.readyState == 4 && xhr.status == 200){
var wyp = document.getElementById('wyp');
if(xhr.responseText == 'True'){
wyp.innerText = '用户名已存在';
wyp.style.color = 'red';
}else if(xhr.responseText.length == 0){
wyp.innerText = '用户名不能为空'
wyp.style.color = 'red'
}
else{
wyp.innerText = '可以正常使用';
wyp.style.color = 'green'
}
}
}
}
ajax2.js
原始数据 复制代码
$(document).ready(function(){
$("form").submit(function(e){
var s = $("#wyp");
var s1 = $("#wyp1");
if($("#username1").val().length == 0){
s.text('请填写账户名');
e.preventDefault();
}else if($("#id2").val().length == 0){
s1.text('请填写密码');
e.preventDefault();
}
});
});
ajax3.js
原始数据 复制代码
function getxhr() {
try{
var xhr = new XMLHttpRequest();
return xhr;
}catch (e) {
try{
return new ActiveXObject('Mexm12.XMLHTMP')
}catch (e){
try{
return new ActiveXObject('Microsoft.XMLHTML')
}catch (e) {
alert('请更换浏览器');
throw e;
}
}
}
}
function funajax() {
var value = document.getElementById('username').value;
var xhr = getxhr();
xhr.open('post','ajax2');
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send("username4="+ value);
xhr.onreadystatechange = function () {
if(xhr.readyState == 4 && xhr.status == 200){
var wyp = document.getElementById('wyp');
if(xhr.responseText == 'True'){
wyp.innerText = '有效用户';
wyp.style.color = 'green';
} else{
wyp.innerText = '没有此用户名,请注册';
wyp.style.color = 'red'
}
}
}
}
ajax4.js
原始数据 复制代码
function getxhr() {
try{
var xhr = new XMLHttpRequest();
return xhr;
}catch (e) {
try{
return new ActiveXObject('Mexm12.XMLHTMP')
}catch (e){
try{
return new ActiveXObject('Microsoft.XMLHTML')
}catch (e) {
alert('请更换浏览器');
throw e;
}
}
}
}
function funajax() {
var value = document.getElementById('username').value;
var xhr = getxhr();
xhr.open('post','ajax6');
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send("username4="+ value);
xhr.onreadystatechange = function () {
if(xhr.readyState == 4 && xhr.status == 200){
var wyp = document.getElementById('wyp2');
if(xhr.responseText == 'True'){
wyp.innerText = '有效用户';
wyp.style.color = 'green';
} else{
wyp.innerText = '没有此用户名,请注册';
wyp.style.color = 'red'
}
}
}
}
areadata.js
原始数据 复制代码
var threeSelectData={"省份":{val:"",items:{"城市":{val:"",items:{"区县":""}}}},"北京":{val:"110000",items:{"市辖区":{val:"110100",items:{"东城区":"110101","西城区":"110102","崇文区":"110103","宣武区":"110104","朝阳区":"110105","丰台区":"110106","石景山区":"110107","海淀区":"110108","门头沟区":"110109","房山区":"110111","通州区":"110112","顺义区":"110113"}},"县":{val:"110200",items:{"昌平县":"110221","大兴县":"110224","平谷县":"110226","怀柔县":"110227","密云县":"110228","延庆县":"110229"}}}},"天津":{val:"120000",items:{"市辖区":{val:"120100",items:{"和平区":"120101","河东区":"120102","河西区":"120103","南开区":"120104","河北区":"120105","红桥区":"120106","塘沽区":"120107","汉沽区":"120108","大港区":"120109","东丽区":"120110","西青区":"120111","津南区":"120112","北辰区":"120113"}},"县":{val:"120200",items:{"宁河县":"120221","武清县":"120222","静海县":"120223","宝坻县":"120224","蓟县":"120225"}}}},"河北":{val:"130000",items:{"石家庄市":{val:"130100",items:{"市辖区":"130101","长安区":"130102","桥东区":"130103","桥西区":"130104","新华区":"130105","郊区":"130106","井陉矿区":"130107","井陉县":"130121","正定县":"130123","栾城县":"130124","行唐县":"130125","灵寿县":"130126","高邑县":"130127","沈泽县":"130128","赞皇县":"130129","无极县":"130130","平山县":"130131","元氏县":"130132","赵县":"130133","辛集市":"130181","藁城市":"130182","晋州市":"130183","新乐市":"130184","鹿泉市":"130185"}},"唐山市":{val:"130200",items:{"市辖区":"130201","路南区":"130202","路北区":"130203","古冶区":"130204","开平区":"130205","新区":"130206","丰润县":"130221","滦县":"130223","滦南县":"130224","乐亭县":"130225","迁西县":"130227","玉田县":"130229","唐海县":"130230","遵化市":"130281","丰南市":"130282","迁安市":"130283"}},"秦皇岛市":{val:"130300",items:{"市辖区":"130301","海港区":"130302","山海关区":"130303","北戴河区":"130304","青龙满族自治县":"130321","昌黎县":"130322","抚宁县":"130323","卢龙县":"130324"}},"邯郸市":{val:"130400",items:{"市辖区":"130401","邯山区":"130402","丛台区":"130403","复兴区":"130404","峰峰矿区":"130406","邯郸县":"130421","临漳县":"130423","成安县":"130424","大名县":"130425","涉县":"130426","磁县":"130427","肥乡县":"130428","永年县":"130429","邱县":"130430","鸡泽县":"130431","广平县":"130432","馆陶县":"130433","魏县":"130434","曲周县":"130435","武安市":"130481"}},"邢台市":{val:"130500",items:{"市辖区":"130501","桥东区":"130502","桥西区":"130503","邢台县":"130521","临城县":"130522","内丘县":"130523","柏乡县":"130524","隆尧县":"130525","任县":"130526","南和县":"130527","宁晋县":"130528","巨鹿县":"130529","新河县":"130530","广宗县":"130531","平乡县":"130532","威县":"130533","清河县":"130534","临西县":"130535","南宫市":"130581","沙河市":"130582"}},"保定市":{val:"130600",items:{"市辖区":"130601","新市区":"130602","北市区":"130603","南市区":"130604","满城县":"130621","清苑县":"130622","涞水县":"130623","阜平县":"130624","徐水县":"130625","定兴县":"130626","唐县":"130627","高阳县":"130628","容城县":"130629","涞源县":"130630","望都县":"130631","安新县":"130632","易县":"130633","曲阳县":"130634","蠡县":"130635","顺平县":"130636","博野县":"130637","雄县":"130638","涿州市":"130681","定州市":"130682","安国市":"130683","高碑店市":"130684"}},"张家口市":{val:"130700",items:{"市辖区":"130701","桥东区":"130702","桥西区":"130703","宣化区":"130705","下花园区":"130706","宣化县":"130721","张北县":"130722","康保县":"130723","沽原县":"130724","尚义县":"130725","蔚县":"130726","阳原县":"130727","怀安县":"130728","万全县":"130729","怀来县":"130730","涿鹿县":"130731","赤城县":"130732","崇礼县":"130733"}},"承德市":{val:"130800",items:{"市辖区":"130801","双桥区":"130802","双滦区":"130803","鹰手营子矿区":"130804","承德县":"130821","兴隆县":"130822","平泉县":"130823","滦平县":"130824","隆化县":"130825","丰宁满族自治县":"130826","宽城满族自治县":"130827","围场满族蒙古族自治县":"130828"}},"沧州市":{val:"130900",items:{"市辖区":"130901","新华区":"130902","运河区":"130903","沧县":"130921","青县":"130922","东光县":"130923","海兴县":"130924","盐山县":"130925","肃宁县":"130926","南皮县":"130927","吴桥县":"130928","献县":"130929","孟村回族自治县":"130930","泊头市":"130981","任丘市":"130982","黄骅市":"130983","河间市":"130984"}},"廊坊市":{val:"131000",items:{"市辖区":"131001","安次区":"131002","固安县":"131022","永清县":"131023","香河县":"131024","大城县":"131025","文安县":"131026","大厂回族自治县":"131028","霸州市":"131081","三河市":"131082"}},"衡水市":{val:"131100",items:{"市辖区":"131101","桃城区":"131102","枣强县":"131121","武邑县":"131122","武强县":"131123","饶阳县":"131124","安平县":"131125","故城县":"131126","景县":"131127","阜城县":"131128","冀州市":"131181","深州市":"131182"}}}},"山西":{val:"140000",items:{"太原市":{val:"140100",items:{"市辖区":"140101","小店区":"140105","迎泽区":"140106","杏花岭区":"140107","尖草坪区":"140108","万柏林区":"140109","晋源区":"140110","清徐县":"140121","阳曲县":"140122","娄烦县":"140123","古交市":"140181"}},"大同市":{val:"140200",items:{"市辖区":"140201","城区":"140202","矿区":"140203","南郊区":"140211","新荣区":"140212","阳高县":"140221","天镇县":"140222","广灵县":"140223","灵丘县":"140224","浑源县":"140225","左云县":"140226","大同县":"140227"}},"阳泉市":{val:"140300",items:{"市辖区":"140301","城区":"140302","矿区":"140303","郊区":"140311","平定县":"140321","盂县":"140322"}},"长治市":{val:"140400",items:{"市辖区":"140401","城区":"140402","郊区":"140411","长治县":"140421","襄垣县":"140423","屯留县":"140424","平顺县":"140425","黎城县":"140426","壶关县":"140427","长子县":"140428","武乡县":"140429","沁县":"140430","沁源县":"140431","潞城市":"140481"}},"晋城市":{val:"140500",items:{"市辖区":"140501","城区":"140502","沁水县":"140521","阳城县":"140522","陵川县":"140524","泽州县":"140525","高平市":"140581"}},"朔州市":{val:"140600",items:{"市辖区":"140601","朔城区":"140602","平鲁区":"140603","山阴县":"140621","应县":"140622","右玉县":"140623","怀仁县":"140624"}},"忻州地区":{val:"142200",items:{"忻州市":"142201","原平市":"142202","定襄县":"142222","五台县":"142223","代县":"142225","繁峙县":"142226","宁武县":"142227","静乐县":"142228","神池县":"142229","五寨县":"142230","苛岚县":"142231","河曲县":"142232","保德县":"142233","偏关县":"142234"}},"吕梁地区":{val:"142300",items:{"孝义市":"142301","离石市":"142302","汾阳市":"142303","文水市":"142322","交城县":"142323","兴县":"142325","临县":"142326","柳林县":"142327","石楼县":"142328","岚县":"142329","方山县":"142330","中阳县":"142332","交口县":"142333"}},"晋中地区":{val:"142400",items:{"榆次市":"142401","介休市":"142402","榆社县":"142421","左权县":"142422","和顺县":"142423","昔阳县":"142424","寿阳县":"142427","太谷县":"142429","祁县":"142430","平遥县":"142431","灵石县":"142433"}},"临汾地区":{val:"142600",items:{"临汾市":"142601","侯马市":"142602","霍州市":"142603","曲沃县":"142621","翼城县":"142622","襄汾县":"142623","洪洞县":"142625","古县":"142627","安泽县":"142628","浮山县":"142629","吉县":"142630","乡宁县":"142631","浦县":"142632","大宁县":"142633","永和县":"142634","隰县":"142635","汾西县":"142636"}},"运城地区":{val:"142700",items:{"运城市":"142701","永济市":"142702","河津市":"142703","芮城县":"142723","临猗县":"142724","万荣县":"142725","新绛县":"142726","稷山县":"142727","闻喜县":"142729","夏县":"142730","绛县":"142731","平陆县":"142732","垣曲县":"142733"}}}},"内蒙古":{val:"150000",items:{"呼和浩特市":{val:"150100",items:{"市辖区":"150101","新城区":"150102","回民区":"150103","玉泉区":"150104","郊区":"150105","土默特左旗":"150121","托克托县":"150122","和林格尔县":"150123","清水河县":"150124","武川县":"150125"}},"包头市":{val:"150200",items:{"市辖区":"150201","东河区":"150202","昆都伦区":"150203","青山区":"150204","石拐矿区":"150205","白云矿区":"150206","郊区":"150207","土默特右旗":"150221","固阳县":"150222","达尔罕茂明安联合旗":"150223"}},"乌海市":{val:"150300",items:{"市辖区":"150301","海勃湾区":"150302","海南区":"150303","乌达区":"150304"}},"赤峰市":{val:"150400",items:{"市辖区":"150401","红山区":"150402","元宝山区":"150403","松山区":"150404","阿鲁科尔沁旗":"150421","巴林左旗":"150422","巴林右旗":"150423","林西县":"150424","克什克腾旗":"150425","翁牛特旗":"150426","喀喇沁旗":"150428","宁城县":"150429","敖汉旗":"150430"}},"呼伦贝尔盟":{val:"152100",items:{"海拉尔市":"152101","满洲里市":"152102","扎兰屯市":"152103","牙克石市":"152104","根河市":"152105","额尔古纳市":"152106","阿荣旗":"152122","莫力达瓦达斡尔族自治旗":"152123","鄂伦春自治旗":"152127","鄂温克族自治旗":"152128","新巴尔虎右旗":"152129","新巴尔虎左旗":"152130","陈巴尔虎旗":"152131"}},"兴安盟":{val:"152200",items:{"乌兰浩特市":"152201","阿尔山市":"152202","科尔沁右翼前旗":"152221","科尔沁右翼中旗":"152222","扎赉特旗":"152223","突泉县":"152224"}},"哲里木盟":{val:"152300",items:{"通辽市":"152301","霍林郭勒市":"152302","科尔沁左翼中旗":"152322","科尔沁左翼后旗":"152323","开鲁县":"152324","库伦旗":"152325","奈曼旗":"152326","扎鲁特旗":"152327"}},"锡林郭勒盟":{val:"152500",items:{"二连浩特市":"152501","锡林浩特市":"152502","阿巴嘎旗":"152522","苏尼特左旗":"152523","苏尼特右旗":"152524","东乌珠穆沁旗":"152525","西乌珠穆沁旗":"152526","太仆寺旗":"152527","镶黄旗":"152528","正镶白旗":"152529","正蓝旗":"152530","多伦县":"152531"}},"乌兰察布盟":{val:"152600",items:{"集宁市":"152601","丰镇市":"152602","卓资县":"152624","化德县":"152625","商都县":"152626","兴和县":"152627","凉城县":"152629","察哈尔右翼前旗":"152630","察哈尔右翼中旗":"152631","察哈尔右翼后旗":"152632","四子王旗":"152634"}},"伊克昭盟":{val:"152700",items:{"东胜市":"152701","达拉特旗":"152722","准格尔旗":"152723","鄂托克前旗":"152724","鄂托克旗":"152725","杭锦旗":"152726","乌审旗":"152727","伊金霍洛旗":"152728"}},"巴彦淖尔盟":{val:"152800",items:{"临河市":"152801","五原县":"152822","磴口县":"152823","乌拉特前旗":"152824","乌拉特中旗":"152825","乌拉特后旗":"152826","杭锦后旗":"152827"}},"阿拉善盟":{val:"152900",items:{"阿拉善左旗":"152921","阿拉善右旗":"152922","额济纳旗":"152923"}}}},"辽宁":{val:"210000",items:{"沈阳市":{val:"210100",items:{"市辖区":"210101","和平区":"210102","沈河区":"210103","大东区":"210104","皇姑区":"210105","铁西区":"210106","苏家屯区":"210111","东陵区":"210112","新城子区":"210113","于洪区":"210114","辽中县":"210122","康平县":"210123","法库县":"210124","新民市":"210181"}},"大连市":{val:"210200",items:{"市辖区":"210201","中山区":"210202","西岗区":"210203","沙河口区":"210204","甘井子区":"210211","旅顺口区":"210212","金州区":"210213","长海县":"210224","瓦房店市":"210281","普兰店市":"210282","庄河市":"210283"}},"鞍山市":{val:"210300",items:{"市辖区":"210301","铁东区":"210302","铁西区":"210303","立山区":"210304","千山区":"210311","台安县":"210321","岫岩满族自治县":"210323","海城市":"210381"}},"抚顺市":{val:"210400",items:{"市辖区":"210401","新抚区":"210402","露天区":"210403","望花区":"210404","顺城区":"210411","抚顺县":"210421","新宾满族自治区":"210422","清原满族自治区":"210423"}},"本溪市":{val:"210500",items:{"市辖区":"210501","平山区":"210502","溪湖区":"210503","明山区":"210504","南芬区":"210505","本溪满族自治县":"210521","桓仁满族自治县":"210522"}},"丹东市":{val:"210600",items:{"市辖区":"210601","元宝区":"210602","振兴区":"210603","振安区":"210604","宽甸满族自治县":"210624","东港市":"210681","凤城市":"210682"}},"锦州市":{val:"210700",items:{"市辖区":"210701","古塔区":"210702","凌河区":"210703","太河区":"210711","黑山县":"210726","义县":"210727","凌海市":"210781","北宁市":"210782"}},"营口市":{val:"210800",items:{"市辖区":"210801","站前区":"210802","西市区":"210803","鲅鱼圈区":"210804","老边区":"210811","盖州市":"210881","大石桥市":"210882"}},"阜新市":{val:"210900",items:{"市辖区":"210901","海州区":"210902","新邱区":"210903","太平区":"210904","清河门区":"210905","细河区":"210911","阜新蒙古族自治县":"210921","彰武县":"210922"}},"辽阳市":{val:"211000",items:{"市辖区":"211001","白塔区":"211002","文圣区":"211003","宏伟区":"211004","弓长岭区":"211005","太子河区":"211011","辽阳县":"211021","灯塔市":"211081"}},"盘锦市":{val:"211100",items:{"市辖区":"211101","双台子区":"211102","兴隆台区":"211103","大洼县":"211121","盘山县":"211122"}},"铁岭市":{val:"211200",items:{"市辖区":"211201","银州区":"211202","清河区":"211204","铁岭县":"211221","西丰县":"211223","昌图县":"211224","铁法市":"211281","开原市":"211282"}},"朝阳市":{val:"211300",items:{"市辖区":"211301","双塔区":"211302","龙城区":"211303","朝阳县":"211321","建平县":"211322","喀喇沁左翼蒙古族自治县":"211324","北票市":"211381","凌源市":"211382"}},"葫芦岛市":{val:"211400",items:{"市辖区":"211401","连山区":"211402","龙港区":"211403","南票区":"211404","绥中县":"211421","建昌县":"211422","兴城市":"211481"}}}},"吉林":{val:"220000",items:{"长春市":{val:"220100",items:{"市辖区":"220101","南关区":"220102","宽城区":"220103","朝阳区":"220104","二道区":"220105","绿园区":"220106","双阳区":"220112","农安县":"220122","九台市":"220180","榆树市":"220182","德惠市":"220183"}},"吉林市":{val:"220200",items:{"市辖区":"220201","昌邑区":"220202","龙潭区":"220203","船营区":"220204","丰满区":"220211","永吉县":"220221","蛟河市":"220281","桦甸市":"220282","舒兰市":"220283","磐石市":"220284"}},"四平市":{val:"220300",items:{"市辖区":"220301","铁西区":"220302","铁东区":"220303","梨树县":"220322","伊通满族自治县":"220323","公主岭市":"220381","双辽市":"220382"}},"辽源市":{val:"220400",items:{"市辖区":"220401","龙山区":"220402","西安区":"220403","东丰县":"220421","东辽县":"220422"}},"通化市":{val:"220500",items:{"市辖区":"220501","东昌区":"220502","二道江区":"220503","通化县":"220521","辉南县":"220523","柳河县":"220524","梅河口市":"220581","集安市":"220582"}},"白山市":{val:"220600",items:{"市辖区":"220601","八道江区":"220602","抚松县":"220621","靖宇县":"220622","长白朝县族自治县":"220623","江源县":"220625","临江市":"220681"}},"松原市":{val:"220700",items:{"市辖区":"220701","宁江区":"220702","前郭尔罗斯蒙古族自治县":"220721","长岭县":"220722","乾安县":"220723","扶余县":"220724"}},"白城市":{val:"220800",items:{"市辖区":"220801","洮北区":"220802","镇赉县":"220821","通榆县":"220822","洮南市":"220881","大安市":"220882"}},"延边朝鲜族自治州":{val:"222400",items:{"延吉市":"222401","图们市":"222402","敦化市":"222403","珲春市":"222404","龙井市":"222405","和龙市":"222406","汪清县":"222424","安图县":"222426"}}}},"黑龙江":{val:"230000",items:{"哈尔滨市":{val:"230100",items:{"市辖区":"230101","道里区":"230102","南岗区":"230103","道外区":"230104","太平区":"230105","香坊区":"230106","动力区":"230107","平房区":"230108","呼兰县":"230121","依兰县":"230123","方正县":"230124","宾县":"230125","巴彦县":"230126","木兰县":"230127","通河县":"230128","延寿县":"230129","阿城市":"230181","双城市":"230182","尚志市":"230183","五常市":"230184"}},"齐齐哈尔市":{val:"230200",items:{"市辖区":"230201","龙沙区":"230202","建华区":"230203","铁峰区":"230204","昂昂溪区":"230205","富拉尔基区":"230206","碾子山区":"230207","梅里斯达斡尔族":"230208","龙江县":"230221","依安县":"230223","泰来县":"230224","甘南县":"230225","富裕县":"230227","克山县":"230229","克东县":"230230","拜泉县":"230231","讷河市":"230281"}},"鸡西市":{val:"230300",items:{"市辖区":"230301","鸡冠区":"230302","恒山区":"230303","滴道区":"230304","梨树区":"230305","城子河区":"230306","麻山区":"230307","鸡东县":"230321","虎林市":"230381","密山市":"230382"}},"鹤岗市":{val:"230400",items:{"市辖区":"230401","向阳区":"230402","工农区":"230403","南山区":"230404","兴安区":"230405","东山区":"230406","兴山区":"230407","萝北县":"230421","绥宾县":"230422"}},"双鸭山市":{val:"230500",items:{"市辖区":"230501","尖山区":"230502","岭东区":"230503","四方台区":"230505","宝山区":"230506","集贤县":"230521","友谊县":"230522","宝清县":"230523","饶河县":"230524"}},"大庆市":{val:"230600",items:{"市辖区":"230601","萨尔图区":"230602","龙凤区":"230603","让胡路区":"230604","红岗区":"230605","大同区":"230606","肇州县":"230621","肇源县":"230622","林甸县":"230623","杜尔伯特蒙古族自治县":"230624"}},"伊春市":{val:"230700",items:{"市辖区":"230701","伊春区":"230702","南岔区":"230703","友好区":"230704","西林区":"230705","翠峦区":"230706","新青区":"230707","美溪区":"230708","金山屯区":"230709","五营区":"230710","乌马河区":"230711","汤旺河区":"230712","带岭区":"230713","乌伊岭区":"230714","红星区":"230715","上甘岭区":"230716","嘉阴县":"230722","铁力市":"230781"}},"佳木斯市":{val:"230800",items:{"市辖区":"230801","永红区":"230802","向阳区":"230803","前进区":"230804","东风区":"230805","郊区":"230811","桦南县":"230822","桦川县":"230826","汤原县":"230828","抚远县":"230833","同江市":"230881","富锦市":"230882"}},"七台河市":{val:"230900",items:{"市辖区":"230901","新兴区":"230902","桃山区":"230903","茄子河区":"230904","勃利县":"230921"}},"牡丹江市":{val:"231000",items:{"市辖区":"231001","东安区":"231002","阳明区":"231003","爱民区":"231004","西安区":"231005","东宁县":"231024","林口县":"231025","绥芬河市":"231081","海林市":"231083","宁安市":"231084","穆棱市":"231085"}},"黑河市":{val:"231100",items:{"市辖区":"231101","爱辉区":"231102","嫩江县":"231121","逊克县":"231123","孙吴县":"231124","北安市":"231181","五大连池市":"231182"}},"绥化地区":{val:"232300",items:{"绥化市":"232301","安达市":"232302","肇东市":"232303","海伦市":"232304","望奎县":"232324","兰西县":"232325","青冈县":"232326","庆安县":"232330","明水县":"232331","绥棱县":"232332"}},"大兴安岭地区":{val:"232700",items:{"呼玛县":"232721","塔河县":"232722","漠河县":"232723"}}}},"上海":{val:"310000",items:{"市辖区":{val:"310100",items:{"黄浦区":"310101","南市区":"310102","卢湾区":"310103","徐汇区":"310104","长宁区":"310105","静安区":"310106","普陀区":"310107","闸北区":"310108","虹口区":"310109","杨浦区":"310110","闵行区":"310112","宝山区":"310113","嘉定区":"310114","浦东新区":"310115","金山区":"310116","松江区":"310117"}},"县":{val:"310200",items:{"南汇县":"310225","奉贤县":"310226","青浦县":"310229","崇明县":"310230"}}}},"江苏":{val:"320000",items:{"南京市":{val:"320100",items:{"市辖区":"320101","玄武区":"320102","白下区":"320103","秦淮区":"320104","建邺区":"320105","鼓楼区":"320106","下关区":"320107","浦口区":"320111","大厂区":"320112","栖霞区":"320113","雨花台区":"320114","江宁县":"320121","江浦县":"320122","六合县":"320123","溧水县":"320124","高淳县":"320125"}},"无锡市":{val:"320200",items:{"市辖区":"320201","崇安区":"320202","南长区":"320203","北塘区":"320204","郊区":"320211","马山区":"320212","江阴市":"320281","宜兴市":"320282","锡山市":"320283"}},"徐州市":{val:"320300",items:{"市辖区":"320301","鼓楼区":"320302","云龙区":"320303","九里区":"320304","贾汪区":"320305","泉山区":"320311","丰县":"320321","沛县":"320322","铜山县":"320323","睢宁县":"320324","新沂市":"320381","邳州市":"320382"}},"常州市":{val:"320400",items:{"市辖区":"320401","天宁区":"320402","钟楼区":"320404","戚墅堰区":"320405","郊区":"320411","溧阳市":"320481","金坛市":"320482","武进市":"320483"}},"苏州市":{val:"320500",items:{"市辖区":"320501","沧浪区":"320502","平江区":"320503","金阊区":"320504","郊区":"320511","常熟市":"320581","张家港市":"320582","昆山市":"320583","吴江市":"320584","太仓市":"320585","吴县市":"320586"}},"南通市":{val:"320600",items:{"市辖区":"320601","崇川区":"320602","港闸区":"320611","海安县":"320621","如东县":"320623","启东市":"320681","如皋市":"320682","通州市":"320683","海门市":"320684"}},"连云港市":{val:"320700",items:{"市辖区":"320701","连云区":"320703","云台区":"320704","新浦区":"320705","海州区":"320706","赣榆县":"320721","东海县":"320722","灌云县":"320723","灌南县":"320724"}},"淮阴市":{val:"320800",items:{"市辖区":"320801","清河区":"320802","清浦区":"320811","淮阴县":"320821","涟水县":"320826","洪泽县":"320829","盱眙县":"320830","金湖县":"320831","淮安市":"320882"}},"盐城市":{val:"320900",items:{"市辖区":"320901","城区":"320902","响水县":"320921","滨海县":"320922","阜宁县":"320923","射阳县":"320924","建湖县":"320925","盐都县":"320928","东台市":"320981","大丰市":"320982"}},"扬州市":{val:"321000",items:{"市辖区":"321001","广陵区":"321002","郊区":"321011","宝应县":"321023","邗江县":"321027","仪征市":"321081","高邮市":"321084","江都市":"321088"}},"镇江市":{val:"321100",items:{"市辖区":"321101","东口区":"321102","润州区":"321111","丹徒县":"321121","丹阳市":"321181","扬中市":"321182","句容市":"321183"}},"泰州市":{val:"321200",items:{"市辖区":"321201","海陵区":"321202","高港区":"321203","兴化市":"321281","靖江市":"321282","泰兴市":"321283","姜堰市":"321284"}},"宿迁市":{val:"321300",items:{"市辖区":"321301","宿城区":"321302","宿豫区":"321321","沭阳县":"321322","泗阳县":"321323","泗洪县":"321324"}}}},"浙江":{val:"330000",items:{"杭州市":{val:"330100",items:{"市辖区":"330101","上城区":"330102","下城区":"330103","江干区":"330104","拱墅区":"330105","西湖区":"330106","滨江区":"330108","桐庐县":"330122","淳安县":"330127","萧山市":"330181","建德市":"330182","富阳市":"330183","余杭市":"330184","临安市":"330185"}},"宁波市":{val:"330200",items:{"市辖区":"330201","海曙区":"330203","江东区":"330204","江北区":"330205","北仑区":"330206","镇海区":"330211","象山县":"330225","宁海县":"330226","鄞县":"330227","余姚市":"330281","慈溪市":"330282","奉化市":"330283"}},"温州市":{val:"330300",items:{"市辖区":"330301","鹿城区":"330302","龙湾区":"330303","瓯海区":"330304","洞头县":"330322","永嘉县":"330324","平阳县":"330326","苍南县":"330327","文成县":"330328","泰顺县":"330329","瑞安市":"330381","乐清市":"330382"}},"嘉兴市":{val:"330400",items:{"市辖区":"330401","秀城区":"330402","郊区":"330411","嘉善县":"330421","海盐县":"330424","海宁市":"330481","平湖市":"330482","桐乡市":"330483"}},"湖州市":{val:"330500",items:{"市辖区":"330501","德清县":"330521","长兴县":"330522","安吉县":"330523"}},"绍兴市":{val:"330600",items:{"市辖区":"330601","越城区":"330602","绍兴县":"330621","新昌县":"330624","诸暨市":"330681","上虞市":"330682","嵊州市":"330683"}},"金华市":{val:"330700",items:{"市辖区":"330701","婺城区":"330702","金华县":"330721","武义县":"330723","浦江县":"330726","磐安县":"330727","兰溪市":"330781","义乌市":"330782","东阳市":"330783","永康市":"330784"}},"衢州市":{val:"330800",items:{"市辖区":"330801","柯城区":"330802","衢县":"330821","常山县":"330822","开化县":"330824","龙游县":"330825","江山市":"330881"}},"舟山市":{val:"330900",items:{"市辖区":"330901","定海区":"330902","普陀区":"330903","岱山县":"330921","嵊泗县":"330922"}},"台州市":{val:"331000",items:{"市辖区":"331001","椒江区":"331002","黄岩区":"331003","路桥区":"331004","玉环县":"331021","三门县":"331022","天台县":"331023","仙居县":"331024","温岭市":"331081","临海市":"331082"}},"丽水地区":{val:"332500",items:{"丽水市":"332501","龙泉市":"332502","青田县":"332522","云和县":"332523","庆元县":"332525","缙云县":"332526","遂昌县":"332527","松阳县":"332528","景宁畲族自治县":"332529"}}}},"安徽":{val:"340000",items:{"合肥市":{val:"340100",items:{"市辖区":"340101","东市区":"340102","中市区":"340103","西市区":"340104","郊区":"340111","长丰县":"340121","肥东县":"340122","肥西县":"340123"}},"芜湖市":{val:"340200",items:{"市辖区":"340201","镜湖区":"340202","马塘区":"340203","新芜区":"340204","鸠江区":"340207","芜湖县":"340221","繁昌县":"340222","南陵县":"340223"}},"蚌埠市":{val:"340300",items:{"市辖区":"340301","东市区":"340302","中市区":"340303","西市区":"340304","郊区":"340311","怀远县":"340321","五河县":"340322","固镇县":"340323"}},"淮南市":{val:"340400",items:{"市辖区":"340401","大通区":"340402","田家庵区":"340403","谢家集区":"340404","八公山区":"340405","潘集区":"340406","凤台区":"340421"}},"马鞍山市":{val:"340500",items:{"市辖区":"340501","金家庄区":"340502","花山区":"340503","雨山区":"340504","向山区":"340505","当涂县":"340521"}},"淮北市":{val:"340600",items:{"市辖区":"340601","杜集区":"340602","相山区":"340603","烈山区":"340604","濉溪县":"340621"}},"铜陵市":{val:"340700",items:{"市辖区":"340701","铜官山区":"340702","狮子山区":"340703","郊区":"340711","铜陵县":"340721"}},"安庆市":{val:"340800",items:{"市辖区":"340801","迎江区":"340802","大观区":"340803","郊区":"340811","怀宁县":"340822","枞阳县":"340823","潜山县":"340824","太湖县":"340825","宿松县":"340826","望江县":"340827","岳西县":"340828","桐城市":"340881"}},"黄山市":{val:"341000",items:{"市辖区":"341001","屯溪区":"341002","黄山区":"341003","徽州区":"341004","歙县":"341021","休宁县":"341022","黟县":"341023","祁门县":"341024"}},"滁州市":{val:"341100",items:{"市辖区":"341101","琅琊区":"341102","南谯区":"341103","来安县":"341122","全椒县":"341124","定远县":"341125","凤阳县":"341126","天长市":"341181","明光市":"341182"}},"阜阳市":{val:"341200",items:{"市辖区":"341201","颖州区":"341202","颖东区":"341203","颖泉区":"341204","临泉县":"341221","太和县":"341222","涡阳县":"341223","蒙城县":"341224","阜南县":"341225","颖上县":"341226","利辛县":"341227","亳州市":"341281","界首市":"341282"}},"宿州市":{val:"341300",items:{"市辖区":"341301","墉桥区":"341302","砀山县":"341321","萧县":"341322","灵璧县":"341323","泗县":"341324"}},"六安地区":{val:"342400",items:{"六安市":"342401","寿县":"342422","霍邱县":"342423","舒城县":"342425","金寨县":"342426","霍山县":"342427"}},"宣城地区":{val:"342500",items:{"宣州市":"342501","宁国市":"342502","郎溪县":"342522","广德县":"342523","泾县":"342529","旌德县":"342530","绩溪县":"342531"}},"巢湖地区":{val:"342600",items:{"巢湖市":"342601","庐江县":"342622","无为县":"342623","含山县":"342625","和县":"342626"}},"池州地区":{val:"342900",items:{"贵池市":"342901","东至县":"342921","石台县":"342922","青阳县":"342923"}}}},"福建":{val:"350000",items:{"福州市":{val:"350100",items:{"市辖区":"350101","鼓楼区":"350102","台江区":"350103","仓山区":"350104","马尾区":"350105","晋安区":"350111","闽侯县":"350121","连江县":"350122","罗源县":"350123","闽清县":"350124","永泰县":"350125","平潭县":"350128","福清市":"350181","长乐市":"350182"}},"厦门市":{val:"350200",items:{"市辖区":"350201","鼓浪屿区":"350202","思明区":"350203","开元区":"350204","杏林区":"350205","湖里区":"350206","集美区":"350211","同安区":"350212"}},"莆田市":{val:"350300",items:{"市辖区":"350301","城厢区":"350302","涵江区":"350303","莆田县":"350321","仙游县":"350322"}},"三明市":{val:"350400",items:{"市辖区":"350401","梅列区":"350402","三元区":"350403","明溪县":"350421","清流县":"350423","宁化县":"350424","大田县":"350425","尤溪县":"350426","沙县":"350427","将乐县":"350428","泰宁县":"350429","建宁县":"350430","永安市":"350481"}},"泉州市":{val:"350500",items:{"市辖区":"350501","鲤城区":"350502","丰泽区":"350503","洛江区":"350504","惠安县":"350521","安溪县":"350524","永春县":"350525","德化县":"350526","金门县":"350527","石狮市":"350581","晋江市":"350582","南安市":"350583"}},"漳州市":{val:"350600",items:{"市辖区":"350601","芗城区":"350602","龙文区":"350603","云霄县":"350622","漳浦县":"350623","诏安县":"350624","长泰县":"350625","东山县":"350626","南靖县":"350627","平和县":"350628","华安县":"350629","龙海市":"350681"}},"南平市":{val:"350700",items:{"市辖区":"350701","延平区":"350702","顺昌县":"350721","浦城县":"350722","光泽县":"350723","松溪县":"350724","政和县":"350725","邵武市":"350781","武夷山市":"350782","建瓯市":"350783","建阳市":"350784"}},"龙岩市":{val:"350800",items:{"市辖区":"350801","新罗区":"350802","长汀县":"350821","永定县":"350822","上杭县":"350823","武平县":"350824","连城县":"350825","漳平市":"350881"}},"宁德地区":{val:"352200",items:{"宁德市":"352201","福安市":"352202","福鼎市":"352203","霞浦县":"352225","古田县":"352227","屏南县":"352228","寿宁县":"352229","周宁县":"352230","柘荣县":"352231"}}}},"江西":{val:"360000",items:{"南昌市":{val:"360100",items:{"市辖区":"360101","东湖区":"360102","西湖区":"360103","青云谱区":"360104","湾里区":"360105","郊区":"360111","南昌县":"360121","新建县":"360122","安义县":"360123","进贤县":"360124"}},"景德镇市":{val:"360200",items:{"市辖区":"360201","昌江区":"360202","珠山区":"360203","浮梁县":"360222","乐平市":"360281"}},"萍乡市":{val:"360300",items:{"市辖区":"360301","安源区":"360302","湘东区":"360313","莲花县":"360321","上栗县":"360322","芦溪县":"360323"}},"九江市":{val:"360400",items:{"市辖区":"360401","庐山区":"360402","浔阳区":"360403","九江县":"360421","武宁县":"360423","修水县":"360424","永修县":"360425","德安县":"360426","星子县":"360427","都昌县":"360428","湖口县":"360429","彭泽县":"360430","瑞昌市":"360481"}},"新余市":{val:"360500",items:{"市辖区":"360501","渝水区":"360502","分宜县":"360521"}},"赣州市":{val:"360700",items:{"市辖区":"360701","章贡区":"360702","赣县":"360721","信丰县":"360722","大余县":"360723","上犹县":"360724","崇义县":"360725","安远县":"360726","龙南县":"360727","定南县":"360728","全南县":"360729","宁都县":"360730","于都县":"360731","兴国县":"360732","会昌县":"360733","寻乌县":"360734","石城县":"360735","瑞金市":"360781","南康市":"360782"}},"宜春地区":{val:"362200",items:{"宜春市":"362201","丰城市":"362202","樟树市":"362203","高安市":"362204","奉新县":"362226","万载县":"362227","上高县":"362228","宜丰县":"362229","靖安县":"362232","铜鼓县":"362233"}},"上饶地区":{val:"362300",items:{"上饶市":"362301","德兴市":"362302","上饶县":"362321","广丰县":"362322","玉山县":"362323","铅山县":"362324","横峰县":"362325","弋阳县":"362326","余干县":"362329","波阳县":"362330","万年县":"362331","婺源县":"362334"}},"吉安地区":{val:"362400",items:{"吉安市":"362401","井冈山市":"362402","吉安县":"362421","吉水县":"362422","峡江县":"362423","新干县":"362424","永丰县":"362425","泰和县":"362426","遂川县":"362427","万安县":"362428","安福县":"362429","永新县":"362430","宁冈县":"362432"}},"抚州地区":{val:"362500",items:{"临川市":"362502","南城县":"362522","黎川县":"362523","南丰县":"362524","崇仁县":"362525","乐安县":"362526","宜黄县":"362527","金溪县":"362528","资溪县":"362529","东乡县":"362531","广昌县":"362532"}}}},"山东":{val:"370000",items:{"济南市":{val:"370100",items:{"市辖区":"370101","历下区":"370102","市中区":"370103","槐荫区":"370104","天桥区":"370105","历城区":"370112","长清县":"370123","平阴县":"370124","济阳县":"370125","商河县":"370126","章丘市":"370181"}},"青岛市":{val:"370200",items:{"市辖区":"370201","市南区":"370202","市北区":"370203","四方区":"370205","黄岛区":"370211","崂山区":"370212","李沧区":"370213","城阳区":"370214","胶州市":"370281","即墨市":"370282","平度市":"370283","胶南市":"370284","莱西市":"370285"}},"淄博市":{val:"370300",items:{"市辖区":"370301","淄川区":"370302","张店区":"370303","博山区":"370304","临淄区":"370305","周村区":"370306","桓台县":"370321","高青县":"370322","沂源县":"370323"}},"枣庄市":{val:"370400",items:{"市辖区":"370401","市中区":"370402","薛城区":"370403","峄城区":"370404","台儿庄区":"370405","山亭区":"370406","滕州市":"370481"}},"东营市":{val:"370500",items:{"市辖区":"370501","东营区":"370502","河口区":"370503","垦利县":"370521","利津县":"370522","广饶县":"370523"}},"烟台市":{val:"370600",items:{"市辖区":"370601","芝罘区":"370602","福山区":"370611","牟平区":"370612","莱山区":"370613","长岛县":"370634","龙口市":"370681","莱阳市":"370682","莱州市":"370683","蓬莱市":"370684","招远市":"370685","栖霞市":"370686","海阳市":"370687"}},"潍坊市":{val:"370700",items:{"市辖区":"370701","潍城区":"370702","寒亭区":"370703","坊子区":"370704","奎文区":"370705","临朐县":"370724","昌乐县":"370725","青州市":"370781","诸城市":"370782","寿光市":"370783","安丘市":"370784","高密市":"370785","昌邑市":"370786"}},"济宁市":{val:"370800",items:{"市辖区":"370801","市中区":"370802","任城区":"370811","微山县":"370826","鱼台县":"370827","金乡县":"370828","嘉祥县":"370829","汶上县":"370830","泗水县":"370831","梁山县":"370832","曲阜市":"370881","兖州市":"370882","邹城市":"370883"}},"泰安市":{val:"370900",items:{"市辖区":"370901","泰山区":"370902","郊区":"370911","宁阳县":"370921","东平县":"370923","新泰市":"370982","肥城市":"370983"}},"威海市":{val:"371000",items:{"市辖区":"371001","环翠区":"371002","文登市":"371081","荣城市":"371082","乳山市":"371083"}},"日照市":{val:"371100",items:{"市辖区":"371101","东港区":"371102","五莲县":"371121","莒县":"371122"}},"莱芜市":{val:"371200",items:{"市辖区":"371201","莱城区":"371202","钢城区":"371203"}},"临沂市":{val:"371300",items:{"市辖区":"371301","兰山区":"371302","罗庄区":"371311","河东区":"371312","沂南县":"371321","郯城县":"371322","沂水县":"371323","苍山县":"371324","费县":"371325","平邑县":"371326","莒南县":"371327","蒙阴县":"371328","临沭县":"371329"}},"德州市":{val:"371400",items:{"市辖区":"371401","德城区":"371402","陵县":"371421","宁津县":"371422","庆云县":"371423","临邑县":"371424","齐河县":"371425","平原县":"371426","夏津县":"371427","武城县":"371428","乐陵市":"371481","禹城市":"371482"}},"聊城市":{val:"371500",items:{"市辖区":"371501","东昌府区":"371502","阳谷县":"371521","莘县":"371522","茌平县":"371523","东阿县":"371524","冠县":"371525","高唐县":"371526","临清市":"371581"}},"滨州地区":{val:"372300",items:{"滨州市":"372301","惠民县":"372321","阳信县":"372323","无棣县":"372324","沾化县":"372325","博兴县":"372328","邹平县":"372330"}},"荷泽地区":{val:"372900",items:{"菏泽市":"372901","曹县":"372922","定陶县":"372923","成武县":"372924","单县":"372925","巨野县":"372926","郓城县":"372928","鄄城县":"372929","东明县":"372930"}}}},"河南":{val:"410000",items:{"郑州市":{val:"410100",items:{"市辖区":"410101","中原区":"410102","二七区":"410103","管城回族区":"410104","金水区":"410105","上街区":"410106","邙山区":"410108","中牟县":"410122","巩义市":"410181","荥阳市":"410182","新密市":"410183","新郑市":"410184","登丰市":"410185"}},"开封市":{val:"410200",items:{"市辖区":"410201","龙亭区":"410202","顺河回族区":"410203","鼓楼区":"410204","南关区":"410205","郊区":"410211","杞县":"410221","通许县":"410222","尉氏县":"410223","开封县":"410224","兰考县":"410225"}},"洛阳市":{val:"410300",items:{"市辖区":"410301","老城区":"410302","西工区":"410303","壥河回族区":"410304","涧西区":"410305","吉利区":"410306","郊区":"410311","孟津县":"410322","新安县":"410323","栾川县":"410324","嵩县":"410325","汝阳县":"410326","宜阳县":"410327","洛宁县":"410328","伊川县":"410329","偃师市":"410381"}},"平顶山市":{val:"410400",items:{"市辖区":"410401","新华区":"410402","卫东区":"410403","石龙区":"410404","湛河区":"410411","宝丰县":"410421","叶县":"410422","鲁山县":"410423","郏县":"410425","舞钢市":"410481","汝州市":"410482"}},"安阳市":{val:"410500",items:{"市辖区":"410501","文峰区":"410502","北关区":"410503","铁西区":"410504","郊区":"410511","安阳县":"410522","汤阴县":"410523","滑县":"410526","内黄县":"410527","林州市":"410581"}},"鹤壁市":{val:"410600",items:{"市辖区":"410601","鹤山区":"410602","山城区":"410603","郊区":"410611","浚县":"410621","淇县":"410622"}},"新乡市":{val:"410700",items:{"市辖区":"410701","红旗区":"410702","新华区":"410703","北站区":"410704","郊区":"410711","新乡县":"410721","获嘉县":"410724","原阳县":"410725","延津县":"410726","封丘县":"410727","长垣县":"410728","卫辉市":"410781","辉县市":"410782"}},"焦作市":{val:"410800",items:{"市辖区":"410801","解放区":"410802","中站区":"410803","马村区":"410804","山阳区":"410811","修武县":"410821","博爱县":"410822","武陟县":"410823","温县":"410825","济源市":"410881","沁阳市":"410882","孟州市":"410883"}},"濮阳市":{val:"410900",items:{"市辖区":"410901","市区":"410902","清丰县":"410922","南乐县":"410923","范县":"410926","台前县":"410927","濮阳县":"410928"}},"许昌市":{val:"411000",items:{"市辖区":"411001","魏都区":"411002","许昌县":"411023","鄢陵县":"411024","襄城县":"411025","禹州市":"411081","长葛市":"411082"}},"漯河市":{val:"411100",items:{"市辖区":"411101","源汇区":"411102","舞阳县":"411121","临颍县":"411122","郾城县":"411123"}},"三门峡市":{val:"411200",items:{"市辖区":"411201","湖滨区":"411202","渑池县":"411221","陕县":"411222","卢氏县":"411224","义马市":"411281","灵宝市":"411282"}},"南阳市":{val:"411300",items:{"市辖区":"411301","宛城区":"411302","卧龙区":"411303","南召县":"411321","方城县":"411322","西峡县":"411323","镇平县":"411324","内乡县":"411325","淅川县":"411326","社旗县":"411327","唐河县":"411328","新野县":"411329","桐柏县":"411330","邓州市":"411381"}},"商丘市":{val:"411400",items:{"市辖区":"411401","梁园区":"411402","睢阳区":"411403","民权县":"411421","睢县":"411422","宁陵县":"411423","柘城县":"411424","虞城县":"411425","夏邑县":"411426","永城市":"411481"}},"信阳市":{val:"411500",items:{"市辖区":"411501","浉河区":"411502","平桥区":"411503","罗山县":"411521","光山县":"411522","新县":"411523","商城县":"411524","固始县":"411525","潢川县":"411526","淮滨县":"411527","息县":"411528"}},"周口地区":{val:"412700",items:{"周口市":"412701","项城市":"412702","扶沟县":"412721","西华县":"412722","商水县":"412723","太康县":"412724","鹿邑县":"412725","郸城县":"412726","淮阳县":"412727","沈丘县":"412728"}},"驻马店地区":{val:"412800",items:{"驻马店市":"412801","确山县":"412821","泌阳县":"412822","遂平县":"412823","西平县":"412824","上蔡县":"412825","汝南县":"412826","平舆县":"412827","新蔡县":"412828","正阳县":"412829"}}}},"湖北":{val:"420000",items:{"武汉市":{val:"420100",items:{"市辖区":"420101","江岸区":"420102","江汉区":"420103","硚口区":"420104","汉阳区":"420105","武昌区":"420106","青山区":"420107","洪山区":"420111","东西湖区":"420112","汉南区":"420113","蔡甸区":"420114","江夏区":"420115","黄陂区":"420116","新洲区":"420117"}},"黄石市":{val:"420200",items:{"市辖区":"420201","黄石港区":"420202","石灰窑区":"420203","下陆区":"420204","铁山区":"420205","阳新县":"420222","大冶市":"420281"}},"十堰市":{val:"420300",items:{"市辖区":"420301","茅箭区":"420302","张湾区":"420303","郧县":"420321","郧西县":"420322","竹山县":"420323","竹溪县":"420324","房县":"420325","丹江口市":"420381"}},"宜昌市":{val:"420500",items:{"市辖区":"420501","西陵区":"420502","伍家岗区":"420503","点军区":"420504","猇亭区":"420505","宜昌县":"420521","远安县":"420525","兴山县":"420526","秭归县":"420527","长阳土家族自治县":"420528","五峰土家族自治县":"420529","宜都市":"420581","当阳市":"420582","枝江市":"420583"}},"襄樊市":{val:"420600",items:{"市辖区":"420601","襄城区":"420602","樊城区":"420606","襄阳县":"420621","南漳县":"420624","谷城县":"420625","保康县":"420626","老河口市":"420682","枣阳市":"420683","宜城市":"420684"}},"鄂州市":{val:"420700",items:{"市辖区":"420701","梁子湖区":"420702","华容区":"420703","鄂城区":"420704"}},"荆门市":{val:"420800",items:{"市辖区":"420801","东宝区":"420802","京山县":"420821","沙洋县":"420822","钟祥县":"420881"}},"孝感市":{val:"420900",items:{"市辖区":"420901","孝南区":"420902","孝昌县":"420921","大悟县":"420922","云梦县":"420923","应城市":"420981","安陆市":"420982","广水市":"420983","汉川市":"420984"}},"荆州市":{val:"421000",items:{"市辖区":"421001","沙市区":"421002","荆州区":"421003","公安县":"421022","监利县":"421023","江陵县":"421024","石首市":"421081","洪湖市":"421083","松滋市":"421087"}},"黄冈市":{val:"421100",items:{"市辖区":"421101","黄州区":"421102","团风县":"421121","红安县":"421122","罗田县":"421123","英山县":"421124","浠水县":"421125","蕲春县":"421126","黄梅县":"421127","麻城市":"421181","武穴市":"421182"}},"咸宁市":{val:"421200",items:{"市辖区":"421201","咸安区":"421202","嘉鱼县":"421221","通城县":"421222","崇阳县":"421223","通山县":"421224","赤壁市":"421281"}},"恩施土家族苗族自治州":{val:"422800",items:{"恩施市":"422801","利川市":"422802","建始县":"422822","巴东县":"422823","宣恩县":"422825","咸丰县":"422826","来凤县":"422827","鹤峰县":"422828"}},"省直辖县级行政单位":{val:"429000",items:{"随州市":"429001","仙桃市":"429004","潜江市":"429005","天门市":"429006","神农架林区":"429021"}}}},"湖南":{val:"430000",items:{"长沙市":{val:"430100",items:{"市辖区":"430101","芙蓉区":"430102","天心区":"430103","岳麓区":"430104","开福区":"430105","雨花区":"430111","长沙县":"430121","望城县":"430122","宁乡县":"430124","浏阳市":"430181"}},"株洲市":{val:"430200",items:{"市辖区":"430201","荷塘区":"430202","芦淞区":"430203","石峰区":"430204","天元区":"430211","株洲县":"430221","攸县":"430223","茶陵县":"430224","炎陵县":"430225","醴陵市":"430281"}},"湘潭市":{val:"430300",items:{"市辖区":"430301","雨湖区":"430302","岳塘区":"430304","湘潭县":"430321","湘乡市":"430381","韶山市":"430382"}},"衡阳市":{val:"430400",items:{"市辖区":"430401","江东区":"430402","城南区":"430403","城北区":"430404","郊区":"430411","南岳区":"430412","衡阳县":"430421","衡南县":"430422","衡山县":"430423","衡东县":"430424","祁东县":"430426","耒阳市":"430481","常宁市":"430482"}},"邵阳市":{val:"430500",items:{"市辖区":"430501","双清区":"430502","大祥区":"430503","北塔区":"430511","邵东县":"430521","新邵县":"430522","邵阳县":"430523","隆回县":"430524","洞口县":"430525","绥宁县":"430527","新宁县":"430528","城步苗族自治县":"430529","武冈市":"430581"}},"岳阳市":{val:"430600",items:{"市辖区":"430601","岳阳楼区":"430602","云溪区":"430603","君山区":"430611","岳阳县":"430621","华容县":"430623","湘阴县":"430624","平江县":"430626","汨罗市":"430681","临湘市":"430682"}},"常德市":{val:"430700",items:{"市辖区":"430701","武陵区":"430702","鼎城区":"430703","安乡县":"430721","汉寿县":"430722","澧县":"430723","临澧县":"430724","桃源县":"430725","石门县":"430726","津市市":"430781"}},"张家界市":{val:"430800",items:{"市辖区":"430801","永定区":"430802","武陵源区":"430811","慈利县":"430821","桑植县":"430822"}},"益阳市":{val:"430900",items:{"市辖区":"430901","资阳区":"430902","赫山区":"430903","南县":"430921","桃江县":"430922","安化县":"430923","沅江市":"430981"}},"郴州市":{val:"431000",items:{"市辖区":"431001","北湖区":"431002","桂阳县":"431021","宜章县":"431022","永兴县":"431023","嘉禾县":"431024","临武县":"431025","汝城县":"431026","桂东县":"431027","安仁县":"431028","资兴市":"431081"}},"永州市":{val:"431100",items:{"市辖区":"431101","芝山区":"431102","冷水滩区":"431103","祁阳县":"431121","东安县":"431122","双牌县":"431123","道县":"431124","江永县":"431125","宁远县":"431126","蓝山县":"431127","新田县":"431128","江华瑶族自治县":"431129"}},"怀化市":{val:"431200",items:{"市辖区":"431201","鹤城区":"431202","中方县":"431221","沅陵县":"431222","辰溪县":"431223","溆浦县":"431224","会同县":"431225","麻阳苗族自治县":"431226","新晃侗族自治县":"431227","芷江侗族自治县":"431228","靖州苗族侗族自治县":"431229","通道侗族自治县":"431230","洪江市":"431281"}},"娄底地区":{val:"432500",items:{"娄底市":"432501","冷水江市":"432502","涟源市":"432503","双峰县":"432522","新化县":"432524"}},"湘西土家族苗族自治州":{val:"433100",items:{"吉首市":"433101","泸溪县":"433122","凤凰县":"433123","花垣县":"433124","保靖县":"433125","古丈县":"433126","永顺县":"433127","龙山县":"433130"}}}},"广东":{val:"440000",items:{"广州市":{val:"440100",items:{"市辖区":"440101","东山区":"440102","荔湾区":"440103","越秀区":"440104","海珠区":"440105","天河区":"440106","芳村区":"440107","白云区":"440111","黄埔区":"440112","番禺市":"440181","花都市":"440182","增城市":"440183","从化市":"440184"}},"韶关市":{val:"440200",items:{"市辖区":"440201","江北区":"440202","武江区":"440203","浈江区":"440204","曲江县":"440221","始兴县":"440222","仁化县":"440224","翁源县":"440229","乳源瑶族自治县":"440232","新丰县":"440233","乐昌市":"440281","南雄市":"440282"}},"深圳市":{val:"440300",items:{"市辖区":"440301","罗湖区":"440303","福田区":"440304","南山区":"440305","宝安区":"440306","龙岗区":"440307","盐田区":"440308"}},"珠海市":{val:"440400",items:{"市辖区":"440401","香洲区":"440402","斗门县":"440421"}},"汕头市":{val:"440500",items:{"市辖区":"440501","达濠区":"440506","龙湖区":"440507","金园区":"440508","升平区":"440509","河浦区":"440510","南澳县":"440523","潮阳市":"440582","澄海市":"440583"}},"佛山市":{val:"440600",items:{"市辖区":"440601","城区":"440602","石湾区":"440603","顺德市":"440681","南海市":"440682","三水市":"440683","高明市":"440684"}},"江门市":{val:"440700",items:{"市辖区":"440701","蓬江区":"440703","江海区":"440704","台山市":"440781","新会市":"440782","开平市":"440783","鹤山市":"440784","恩平市":"440785"}},"湛江市":{val:"440800",items:{"市辖区":"440801","赤坎区":"440802","霞山区":"440803","坡头区":"440804","麻章区":"440811","遂溪县":"440823","徐闻县":"440825","廉江市":"440881","雷州市":"440882","吴川市":"440883"}},"茂名市":{val:"440900",items:{"市辖区":"440901","茂南区":"440902","电白县":"440923","高州市":"440981","化州市":"440982","信宜市":"440983"}},"肇庆市":{val:"441200",items:{"市辖区":"441201","端州区":"441202","鼎湖区":"441203","广宁县":"441223","怀集县":"441224","封开县":"441225","德庆县":"441226","高要市":"441283","四会市":"441284"}},"惠州市":{val:"441300",items:{"市辖区":"441301","惠城区":"441302","博罗县":"441322","惠东县":"441323","龙门县":"441324","惠阳市":"441381"}},"梅州市":{val:"441400",items:{"市辖区":"441401","梅江区":"441402","梅县":"441421","大埔县":"441422","丰顺县":"441423","五华县":"441424","平远县":"441426","蕉岭县":"441427","兴宁市":"441481"}},"汕尾市":{val:"441500",items:{"市辖区":"441501","城区":"441502","海丰县":"441521","陆河县":"441523","陆丰县":"441581"}},"河源市":{val:"441600",items:{"市辖区":"441601","源城区":"441602","紫金县":"441621","龙川县":"441622","连平县":"441623","和平县":"441624","东源县":"441625"}},"阳江市":{val:"441700",items:{"市辖区":"441701","江城区":"441702","阳西县":"441721","阳东县":"441723","阳春市":"441781"}},"清远市":{val:"441800",items:{"市辖区":"441801","清城区":"441802","佛冈县":"441821","阳山县":"441823","连山壮族瑶族自治县":"441825","连山瑶族自治县":"441826","清新县":"441827","英德市":"441881","连州市":"441882"}},"东莞市":{val:"441900",items:{}},"中山市":{val:"442000",items:{}},"潮州市":{val:"445100",items:{"市辖区":"445101","湘桥区":"445102","潮安县":"445121","饶平县":"445122"}},"揭阳市":{val:"445200",items:{"市辖区":"445201","榕城区":"445202","揭东县":"445221","揭西县":"445222","惠来县":"445224","普宁市":"445281"}},"云浮市":{val:"445300",items:{"市辖区":"445301","云城区":"445302","新兴县":"445321","郁南县":"445322","云安县":"445323","罗定市":"445381"}}}},"广西":{val:"450000",items:{"南宁市":{val:"450100",items:{"市辖区":"450101","兴宁区":"450102","新城区":"450103","城北区":"450104","江南区":"450105","永新区":"450106","市郊区":"450111","邕宁县":"450121","武鸣县":"450122"}},"柳州市":{val:"450200",items:{"市辖区":"450201","城中区":"450202","鱼峰区":"450203","柳南区":"450204","柳北区":"450205","市郊区":"450211","柳江县":"450221","柳城县":"450222"}},"桂林市":{val:"450300",items:{"市辖区":"450301","秀峰区":"450302","叠彩区":"450303","象山区":"450304","七星区":"450305","雁山区":"450311","阳朔县":"450321","临桂县":"450322","灵川县":"450323","全州县":"450324","兴安县":"450325","永福县":"450326","灌阳县":"450327","龙胜各族自治县":"450328","资源县":"450329","平乐县":"450330","荔浦县":"450331","恭城瑶族自治县":"450332"}},"梧州市":{val:"450400",items:{"市辖区":"450401","万秀区":"450403","蝶山区":"450404","市郊区":"450411","苍梧县":"450421","腾县":"450422","蒙山县":"450423","岑溪市":"450481"}},"北海市":{val:"450500",items:{"市辖区":"450501","海城区":"450502","银海区":"450503","铁山港区":"450512","合浦县":"450521"}},"防城港市":{val:"450600",items:{"市辖区":"450601","港口区":"450602","防城区":"450603","上思县":"450621","东兴市":"450681"}},"钦州市":{val:"450700",items:{"市辖区":"450701","钦南区":"450702","钦北区":"450703","灵山县":"450721","浦北县":"450722"}},"贵港市":{val:"450800",items:{"市辖区":"450801","港北区":"450802","港南区":"450803","平南县":"450821"}},"玉林市":{val:"450900",items:{"市辖区":"450901","玉州区":"450902","容县":"450921","陆川县":"450922","博白县":"450923","兴业县":"450924","北流市":"450981"}},"南宁地区":{val:"452100",items:{"凭祥市":"452101","横县":"452122","宾阳县":"452123","上林县":"452124","隆安县":"452126","马山县":"452127","扶绥县":"452128","崇左县":"452129","大新县":"452130","天等县":"452131","宁明县":"452132","龙州县":"452133"}},"柳州地区":{val:"452200",items:{"合山市":"452201","鹿寨县":"452223","象州县":"452224","武宣县":"452225","来宾县":"452226","融安县":"452227","三江侗族自治县":"452228","融水苗族自治县":"452229","金秀瑶族自治县":"452230","忻城县":"452231"}},"贺州地区":{val:"452400",items:{"贺州市":"452402","昭平县":"452424","钟山县":"452427","富川瑶族自治县":"452428"}},"百色地区":{val:"452600",items:{"百色市":"452601","田阳县":"452622","田东县":"452623","平果县":"452624","德保县":"452625","靖西县":"452626","那坡县":"452627","凌云县":"452628","乐业县":"452629","田林县":"452630","隆林各族自治县":"452631","西林县":"452632"}},"河池地区":{val:"452700",items:{"河池市":"452701","宜州市":"452702","罗城仫佬族自治县":"452723","环江毛南族自治县":"452724","南丹县":"452725","天峨县":"452726","凤山县":"452727","东兰县":"452728","巴马瑶族自治县":"452729","都安瑶族自治县":"452730","大化瑶族自治县":"452731"}}}},"海南":{val:"460000",items:{"海口市":{val:"460100",items:{"市辖区":"460101","振东区":"460102","新华区":"460103","秀英区":"460104"}},"三亚市":{val:"460200",items:{"市辖区":"460201"}}}},"重庆":{val:"500000",items:{"市辖区":{val:"500100",items:{"万州区":"500101","涪陵区":"500102","渝中区":"500103","大渡口区":"500104","江北区":"500105","沙坪坝区":"500106","九龙坡区":"500107","南岸区":"500108","北碚区":"500109","万盛区":"500110","双桥区":"500111","渝北区":"500112","巴南区":"500113"}},"县":{val:"500200",items:{"长寿县":"500221","綦江县":"500222","潼南县":"500223","铜梁县":"500224","大足县":"500225","荣昌县":"500226","璧山县":"500227","梁平县":"500228","城口县":"500229","丰都县":"500230","垫江县":"500231","武隆县":"500232","忠县":"500233","开县":"500234","云阳县":"500235","奉节县":"500236","巫山县":"500237","巫溪县":"500238","黔江土家族苗族自治县":"500239","石柱土家族自治县":"500240","秀山土家族苗族自治县":"500241","酉阳土家族苗族自治县":"500242","彭水苗族土家族自治县":"500243"}},"市":{val:"500300",items:{"江津市":"500381","合川市":"500382","永川市":"500383","南川市":"500384"}}}},"四川":{val:"510000",items:{"成都市":{val:"510100",items:{"市辖区":"510101","锦江区":"510104","青羊区":"510105","金牛区":"510106","武侯区":"510107","成华区":"510108","龙泉驿区":"510112","青白江区":"510113","金堂县":"510121","双流县":"510122","温江县":"510123","郫县":"510124","新都县":"510125","大邑县":"510129","蒲江县":"510131","新津县":"510132","都江堰市":"510181","彭州市":"510182","邛崃市":"510183","崇州市":"510184"}},"自贡市":{val:"510300",items:{"市辖区":"510301","自流井区":"510302","恭井区":"510303","大安区":"510304","沿滩区":"510311","荣县":"510321","富顺县":"510322"}},"攀枝花市":{val:"510400",items:{"市辖区":"510401","东区":"510402","西区":"510403","仁和区":"510411","米易县":"510421","盐边县":"510422"}},"泸州市":{val:"510500",items:{"市辖区":"510501","江阳区":"510502","纳溪区":"510503","龙马潭区":"510504","泸县":"510521","合江县":"510522","叙永县":"510524","古蔺县":"510525"}},"德阳市":{val:"510600",items:{"市辖区":"510601","旌阳区":"510603","中江县":"510623","罗江县":"510626","广汉市":"510681","什邡市":"510682","绵竹市":"510683"}},"绵阳市":{val:"510700",items:{"市辖区":"510701","涪城区":"510703","游仙区":"510704","三台县":"510722","盐亭县":"510723","安县":"510724","梓潼县":"510725","北川县":"510726","平武县":"510727","江油市":"510781"}},"广元市":{val:"510800",items:{"市辖区":"510801","市中区":"510802","元坝区":"510811","朝天区":"510812","旺苍县":"510821","青川县":"510822","剑阁县":"510823","苍溪县":"510824"}},"遂宁市":{val:"510900",items:{"市辖区":"510901","市中区":"510902","蓬溪县":"510921","射洪县":"510922","大英县":"510923"}},"内江市":{val:"511000",items:{"市辖区":"511001","市中区":"511002","东兴区":"511011","威远县":"511024","资中县":"511025","隆昌县":"511028"}},"乐山市":{val:"511100",items:{"市辖区":"511101","市中区":"511102","沙湾区":"511111","五通桥区":"511112","金口河区":"511113","犍为县":"511123","井研县":"511124","夹江县":"511126","沐川县":"511129","峨边彝族自治县":"511132","马边彝族自治县":"511133","峨眉山市":"511181"}},"南充市":{val:"511300",items:{"市辖区":"511301","顺庆区":"511302","高坪区":"511303","嘉陵区":"511304","南部县":"511321","营山县":"511322","蓬安县":"511323","仪陇县":"511324","西充县":"511325","阆中市":"511381"}},"宜宾市":{val:"511500",items:{"市辖区":"511501","翠屏区":"511502","宜宾县":"511521","南溪县":"511522","江安县":"511523","长宁县":"511524","高县":"511525","珙县":"511526","筠连县":"511527","兴文县":"511528","屏山县":"511529"}},"广安市":{val:"511600",items:{"市辖区":"511601","广安区":"511602","岳池县":"511621","武胜县":"511622","邻水县":"511623","华蓥市":"511681"}},"达川地区":{val:"513000",items:{"达川市":"513001","万源市":"513002","达县":"513021","宣汉县":"513022","开江县":"513023","大竹县":"513029","渠县":"513030"}},"雅安地区":{val:"513100",items:{"雅安市":"513101","名山县":"513122","荥经县":"513123","汉源县":"513124","石棉县":"513125","天全县":"513126","芦山县":"513127","宝兴县":"513128"}},"阿坝藏族羌族自治州":{val:"513200",items:{"汶川县":"513221","理县":"513222","茂县":"513223","松潘县":"513224","九寨沟县":"513225","金川县":"513226","小金县":"513227","黑水县":"513228","马尔康县":"513229","壤塘县":"513230","阿坝县":"513231","若尔盖县":"513232","红原县":"513233"}},"甘孜藏族自治州":{val:"513300",items:{"康定县":"513321","泸定县":"513322","丹巴县":"513323","九龙县":"513324","雅江县":"513325","道孚县":"513326","炉霍县":"513327","甘孜县":"513328","新龙县":"513329","德格县":"513330","白玉县":"513331","石渠县":"513332","色达县":"513333","理塘县":"513334","巴塘县":"513335","乡城县":"513336","稻城县":"513337","得荣县":"513338"}},"凉山彝族自治州":{val:"513400",items:{"西昌市":"513401","木里藏族自治县":"513422","盐源县":"513423","德昌县":"513424","会理县":"513425","会东县":"513426","宁南县":"513427","普格县":"513428","布拖县":"513429","金阳县":"513430","昭觉县":"513431","喜德县":"513432","冕宁县":"513433","越西县":"513434","甘洛县":"513435","美姑县":"513436","雷波县":"513437"}},"巴中地区":{val:"513700",items:{"巴中市":"513701","通江县":"513721","南江县":"513722","平昌县":"513723"}},"眉山地区":{val:"513800",items:{"眉山县":"513821","仁寿县":"513822","彭山县":"513823","洪雅县":"513824","丹棱县":"513825","青神县":"513826"}},"资阳地区":{val:"513900",items:{"资阳市":"513901","简阳市":"513902","安岳县":"513921","乐至县":"513922"}}}},"贵州":{val:"520000",items:{"贵阳市":{val:"520100",items:{"市辖区":"520101","南明区":"520102","云岩区":"520103","花溪区":"520111","乌当区":"520112","白云区":"520113","开阳县":"520121","息烽县":"520122","修文县":"520123","清镇市":"520181"}},"六盘水市":{val:"520200",items:{"钟山区":"520201","盘县特区":"520202","六枝特区":"520203","水城县":"520221"}},"遵义市":{val:"520300",items:{"市辖区":"520301","红花岗区":"520302","遵义县":"520321","桐梓县":"520322","绥阳县":"520323","正阳县":"520324","道真仡佬族苗族自治县":"520325","务川仡佬族苗族自治县":"520326","凤冈县":"520327","湄潭县":"520328","余庆县":"520329","习水县":"520330","赤水市":"520381","仁怀市":"520382"}},"铜仁地区":{val:"522200",items:{"铜仁市":"522201","江口县":"522222","玉屏侗族自治县":"522223","石阡县":"522224","思南县":"522225","印江土家族苗族自治县":"522226","德江县":"522227","沿河土家族自治县":"522228","松桃苗族自治县":"522229","万山特区":"522230"}},"黔西南布依族苗族自治州":{val:"522300",items:{"兴义市":"522301","兴仁县":"522322","普安县":"522323","晴隆县":"522324","贞丰县":"522325","望谟县":"522326","册亨县":"522327","安龙县":"522328"}},"毕节地区":{val:"522400",items:{"毕节市":"522401","大方县":"522422","黔西县":"522423","金沙县":"522424","织金县":"522425","纳雍县":"522426","威宁彝族回族苗族自治县":"522427","赫章县":"522428"}},"安顺地区":{val:"522500",items:{"安顺市":"522501","平坝县":"522526","普定县":"522527","关岭布依族苗族自治县":"522528","镇宁布依族苗族自治县":"522529","紫云苗族布依族自治县":"522530"}},"黔东南苗族侗族自治州":{val:"522600",items:{"凯里市":"522601","黄平县":"522622","施秉县":"522623","三穗县":"522624","镇远县":"522625","岑巩县":"522626","天柱县":"522627","锦屏县":"522628","剑河县":"522629","台江县":"522630","黎平县":"522631","榕江县":"522632","从江县":"522633","雷山县":"522634","麻江县":"522635","丹寨县":"522636"}},"黔南布依族苗族自治州":{val:"522700",items:{"都匀市":"522701","福泉市":"522702","荔波县":"522722","贵定县":"522723","瓮安县":"522725","独山县":"522726","平塘县":"522727","罗甸县":"522728","长顺县":"522729","龙里县":"522730","惠水县":"522731","三都水族自治县":"522732"}}}},"云南":{val:"530000",items:{"昆明市":{val:"530100",items:{"市辖区":"530101","五华区":"530102","盘龙区":"530103","官渡区":"530111","西山区":"530112","东川区":"530113","呈贡县":"530121","晋宁县":"530122","富民县":"530124","宜良县":"530125","石林彝族自治县":"530126","嵩明县":"530127","禄劝彝族苗族自治县":"530128","寻甸回族彝族自治县":"530129","安宁市":"530181"}},"曲靖市":{val:"530300",items:{"市辖区":"530301","麒麟区":"530302","马龙县":"530321","陆良县":"530322","师宗县":"530323","罗平县":"530324","富源县":"530325","会泽县":"530326","沾益县":"530328","宣威市":"530381"}},"玉溪市":{val:"530400",items:{"市辖区":"530401","红塔区":"530402","江川县":"530421","澄江县":"530422","通海县":"530423","华宁县":"530424","易门县":"530425","峨山彝族自治县":"530426","新平彝族傣族自治县":"530427","元江哈尼族彝族傣族自治县":"530428"}},"昭通地区":{val:"532100",items:{"昭通市":"532101","鲁甸县":"532122","巧家县":"532123","盐津县":"532124","大关县":"532125","永善县":"532126","绥江县":"532127","镇雄县":"532128","彝良县":"532129","威信县":"532130","水富县":"532131"}},"楚雄彝族自治州":{val:"532300",items:{"楚雄市":"532301","双柏县":"532322","牟定县":"532323","南华县":"532324","姚安县":"532325","大姚县":"532326","永仁县":"532327","元谋县":"532328","武定县":"532329","禄丰县":"532331"}},"红河哈尼族彝族自治州":{val:"532500",items:{"个旧市":"532501","开远市":"532502","蒙自县":"532522","屏边苗族自治县":"532523","建水县":"532524","石屏县":"532525","弥勒县":"532526","泸西县":"532527","元阳县":"532528","红河县":"532529","金平苗族瑶族傣族自治县":"532530","绿春县":"532531","河口瑶族自治县":"532532"}},"文山壮族苗族自治州":{val:"532600",items:{"文山县":"532621","砚山县":"532622","西畴县":"532623","麻栗坡县":"532624","马关县":"532625","丘北县":"532626","广南县":"532627","富宁县":"532628"}},"思茅地区":{val:"532700",items:{"思茅市":"532701","普洱哈尼族彝族自治县":"532722","墨江哈尼族自治县":"532723","景东彝族自治县":"532724","景谷傣族彝族自治县":"532725","镇沅彝族哈尼族拉祜族自治县":"532726","江城哈尼族彝族自治县":"532727","孟连傣族拉祜族佤族自治县":"532728","澜沧拉祜族自治县":"532729","西盟佤族自治县":"532730"}},"西双版纳傣族自治州":{val:"532800",items:{"景洪市":"532801","勐海县":"532822","勐腊县":"532823"}},"大理白族自治州":{val:"532900",items:{"大理市":"532901","漾濞彝族自治县":"532922","祥云县":"532923","宾川县":"532924","弥渡县":"532925","南涧彝族自治县":"532926","巍山彝族回族自治县":"532927","永平县":"532928","云龙县":"532929","洱源县":"532930","剑川县":"532931","鹤庆县":"532932"}},"保山地区":{val:"533000",items:{"保山市":"533001","施甸县":"533022","腾冲县":"533023","龙陵县":"533024","昌宁县":"533025"}},"德宏傣族景颇族自治州":{val:"533100",items:{"畹町市":"533101","瑞丽市":"533102","潞西市":"533103","梁河县":"533122","盈江县":"533123","陇川县":"533124"}},"丽江地区":{val:"533200",items:{"丽江纳西族自治县":"533221","永胜县":"533222","华坪县":"533223","宁蒗彝族自治县":"533224"}},"怒江傈僳族自治州":{val:"533300",items:{"泸水县":"533321","福贡县":"533323","贡山独龙族怒族自治县":"533324","兰坪白族普米族自治县":"533325"}},"迪庆藏族自治州":{val:"533400",items:{"中甸县":"533421","德钦县":"533422","维西傈僳族自治县":"533423"}},"临沧地区":{val:"533500",items:{"临沧县":"533521","凤庆县":"533522","云县":"533523","永德县":"533524","镇康县":"533525","双江拉祜族佤族布朗族傣族自治县":"533526","耿马傣族佤族自治县":"533527","沧源佤族自治县":"533528"}}}},"西藏":{val:"540000",items:{"拉萨市":{val:"540100",items:{"市辖区":"540101","城关区":"540102","林周县":"540121","当雄县":"540122","尼木县":"540123","曲水县":"540124","堆龙德庆县":"540125","达孜县":"540126","墨竹工卡县":"540127"}},"昌都地区":{val:"542100",items:{"昌都县":"542121","江达县":"542122","贡觉县":"542123","类乌齐县":"542124","丁青县":"542125","察雅县":"542126","八宿县":"542127","左贡县":"542128","芒康县":"542129","洛隆县":"542132","边坝县":"542133","盐井县":"542134","碧土县":"542135","妥坝县":"542136","生达县":"542137"}},"山南地区":{val:"542200",items:{"乃东县":"542221","扎囊县":"542222","贡嘎县":"542223","桑日县":"542224","琼结县":"542225","曲松县":"542226","措美县":"542227","洛扎县":"542228","加查县":"542229","隆子县":"542231","错那县":"542232","浪卡子县":"542233"}},"日喀则地区":{val:"542300",items:{"日喀则市":"542301","南木林县":"542322","江孜县":"542323","定日县":"542324","萨迦县":"542325","拉孜县":"542326","昂仁县":"542327","谢通门县":"542328","白朗县":"542329","仁布县":"542330","康马县":"542331","定结县":"542332","仲巴县":"542333","亚东县":"542334","吉隆县":"542335","聂拉木县":"542336","萨嘎县":"542337","岗巴县":"542338"}},"那曲地区":{val:"542400",items:{"那曲县":"542421","嘉黎县":"542422","比如县":"542423","聂荣县":"542424","安多县":"542425","申扎县":"542426","索县":"542427","班戈县":"542428","巴青县":"542429","尼玛县":"542430"}},"阿里地区":{val:"542500",items:{"普兰县":"542521","札达县":"542522","噶尔县":"542523","日土县":"542524","革吉县":"542525","改则县":"542526","措勤县":"542527","隆格尔县":"542528"}},"林芝地区":{val:"542600",items:{"林芝县":"542621","工布江达县":"542622","米林县":"542623","墨脱县":"542624","波密县":"542625","察隅县":"542626","朗县":"542627"}}}},"陕西":{val:"610000",items:{"西安市":{val:"610100",items:{"市辖区":"610101","新城区":"610102","碑林区":"610103","莲湖区":"610104","灞桥区":"610111","未央区":"610112","雁塔区":"610113","阎良区":"610114","临潼区":"610115","长安县":"610121","蓝田县":"610122","周至县":"610124","户县":"610125","高陵县":"610126"}},"铜川市":{val:"610200",items:{"市辖区":"610201","城区":"610202","郊区":"610203","耀县":"610221","宜君县":"610222"}},"宝鸡市":{val:"610300",items:{"市辖区":"610301","渭滨区":"610302","金台区":"610303","宝鸡县":"610321","凤翔县":"610322","岐山县":"610323","扶风县":"610324","眉县":"610326","陇县":"610327","千阳县":"610328","麟游县":"610329","凤县":"610330","太白县":"610331"}},"咸阳市":{val:"610400",items:{"市辖区":"610401","秦都区":"610402","杨陵区":"610403","渭城区":"610404","三原县":"610422","泾阳县":"610423","乾县":"610424","礼泉县":"610425","永寿县":"610426","彬县":"610427","长武县":"610428","旬邑县":"610429","淳化县":"610430","武功县":"610431","兴平市":"610481"}},"渭南市":{val:"610500",items:{"市辖区":"610501","临渭区":"610502","华县":"610521","潼关县":"610522","大荔县":"610523","合阳县":"610524","澄城县":"610525","蒲城县":"610526","白水县":"610527","富平县":"610528","韩城市":"610581","华阴市":"610582"}},"延安市":{val:"610600",items:{"市辖区":"610601","宝塔区":"610602","延长县":"610621","延川县":"610622","子长县":"610623","安塞县":"610624","志丹县":"610625","吴旗县":"610626","甘泉县":"610627","富县":"610628","洛川县":"610629","宜川县":"610630","黄龙县":"610631","黄陵县":"610632"}},"汉中市":{val:"610700",items:{"市辖区":"610701","汉台区":"610702","南郑县":"610721","城固县":"610722","洋县":"610723","西乡县":"610724","勉县":"610725","宁强县":"610726","略阳县":"610727","镇巴县":"610728","留坝县":"610729","佛坪县":"610730"}},"安康地区":{val:"612400",items:{"安康市":"612401","汉阴县":"612422","石泉县":"612423","宁陕县":"612424","紫阳县":"612425","岚皋县":"612426","平利县":"612427","镇坪县":"612428","旬阳县":"612429","白河县":"612430"}},"商洛地区":{val:"612500",items:{"商州市":"612501","洛南县":"612522","丹凤县":"612523","商南县":"612524","山阳县":"612525","镇安县":"612526","柞水县":"612527"}},"榆林地区":{val:"612700",items:{"榆林市":"612701","神木县":"612722","府谷县":"612723","横山县":"612724","靖边县":"612725","定边县":"612726","绥德县":"612727","米脂县":"612728","佳县":"612729","吴堡县":"612730","清涧县":"612731","子洲县":"612732"}}}},"甘肃":{val:"620000",items:{"兰州市":{val:"620100",items:{"市辖区":"620101","城关区":"620102","七里河区":"620103","西固区":"620104","安宁区":"620105","红古区":"620111","永登县":"620121","皋兰县":"620122","榆中县":"620123"}},"嘉峪关市":{val:"620200",items:{"市辖区":"620201"}},"金昌市":{val:"620300",items:{"市辖区":"620301","金川区":"620302","永昌县":"620321"}},"白银市":{val:"620400",items:{"市辖区":"620401","白银区":"620402","平川区":"620403","靖远县":"620421","会宁县":"620422","景泰县":"620423"}},"天水市":{val:"620500",items:{"市辖区":"620501","秦城区":"620502","北道区":"620503","清水县":"620521","秦安县":"620522","甘谷县":"620523","武山县":"620524","张家川回族自治县":"620525"}},"酒泉地区":{val:"622100",items:{"玉门市":"622101","酒泉市":"622102","敦煌市":"622103","金塔县":"622123","肃北蒙古族自治县":"622124","阿克塞哈萨克族自治县":"622125","安西县":"622126"}},"张掖地区":{val:"622200",items:{"张掖市":"622201","肃南裕固族自治县":"622222","民乐县":"622223","临泽县":"622224","高台县":"622225","山丹县":"622226"}},"武威地区":{val:"622300",items:{"武威市":"622301","民勤县":"622322","古浪县":"622323","天祝藏族自治县":"622326"}},"定西地区":{val:"622400",items:{"定西县":"622421","通渭县":"622424","陇西县":"622425","渭源县":"622426","临洮县":"622427","漳县":"622428","岷县":"622429"}},"陇南地区":{val:"622600",items:{"武都县":"622621","宕昌县":"622623","成县":"622624","康县":"622625","文县":"622626","西和县":"622627","礼县":"622628","两当县":"622629","徽县":"622630"}},"平凉地区":{val:"622700",items:{"平凉市":"622701","泾川县":"622722","灵台县":"622723","崇信县":"622724","华亭县":"622725","庄浪县":"622726","静宁县":"622727"}},"庆阳地区":{val:"622800",items:{"西峰市":"622801","庆阳市":"622821","环县":"622822","华池县":"622823","合水县":"622824","正宁县":"622825","宁县":"622826","镇原县":"622827"}},"临夏回族自治州":{val:"622900",items:{"临夏市":"622901","临夏县":"622921","康乐县":"622922","永靖县":"622923","广河县":"622924","和政县":"622925","东乡族自治县":"622926","积石山保安族东乡族撒拉族自治县":"622927"}},"甘南藏族自治州":{val:"623000",items:{"合作市":"623001","临潭县":"623021","卓尼县":"623022","舟曲县":"623023","迭部县":"623024","玛曲县":"623025","碌曲县":"623026","夏河县":"623027"}}}},"青海":{val:"630000",items:{"西宁市":{val:"630100",items:{"市辖区":"630101","城东区":"630102","城中区":"630103","城西区":"630104","城北区":"630105","大通回族土族自治县":"630121"}},"海东地区":{val:"632100",items:{"平安县":"632121","民和回族土族自治县":"632122","乐都县":"632123","湟中县":"632124","湟源县":"632125","互助土族自治县":"632126","化隆回族自治县":"632127","循化撒拉族自治县":"632128"}},"海北藏族自治州":{val:"632200",items:{"门源回族自治县":"632221","祁连县":"632222","海晏县":"632223","刚察县":"632224"}},"黄南藏族自治州":{val:"632300",items:{"同仁县":"632321","尖扎县":"632322","泽库县":"632323","河南蒙古族自治县":"632324"}},"海南藏族自治州":{val:"632500",items:{"共和县":"632521","同德县":"632522","贵德县":"632523","兴海县":"632524","贵南县":"632525"}},"果洛藏族自治州":{val:"632600",items:{"玛沁县":"632621","班玛县":"632622","甘德县":"632623","达日县":"632624","久治县":"632625","玛多县":"632626"}},"玉树藏族自治州":{val:"632700",items:{"玉树县":"632721","杂多县":"632722","称多县":"632723","治多县":"632724","囊谦县":"632725","曲麻莱县":"632726"}},"海西蒙古族藏族自治州":{val:"632800",items:{"格尔木市":"632801","德令哈市":"632802","乌兰县":"632821","都兰县":"632822","天峻县":"632823"}}}},"宁夏":{val:"640000",items:{"银川市":{val:"640100",items:{"市辖区":"640101","城区":"640102","新城区":"640103","郊区":"640111","永宁县":"640121","贺兰县":"640122"}},"石嘴山市":{val:"640200",items:{"市辖区":"640201","大武口区":"640202","石嘴山区":"640203","石炭井区":"640204","平罗县":"640221","陶乐县":"640222","惠农县":"640223"}},"吴忠市":{val:"640300",items:{"市辖区":"640301","利通区":"640302","中卫县":"640321","中宁县":"640322","盐池县":"640323","同心县":"640324","青铜峡市":"640381","灵武市":"640382"}},"固原地区":{val:"642200",items:{"固原县":"642221","海原县":"642222","西吉县":"642223","隆德县":"642224","泾源县":"642225","彭阳县":"642226"}}}},"新疆":{val:"650000",items:{"乌鲁木齐市":{val:"650100",items:{"市辖区":"650101","天山区":"650102","沙依巴克区":"650103","新市区":"650104","水磨沟区":"650105","头屯河区":"650106","南山矿区":"650107","东山区":"650108","乌鲁木齐县":"650121"}},"克拉玛依市":{val:"650200",items:{"市辖区":"650201","独山子区":"650202","克拉玛依区":"650203","白碱滩区":"650204","乌尔禾区":"650205"}},"吐鲁番地区":{val:"652100",items:{"吐鲁番市":"652101","鄯善县":"652122","托克逊县":"652123"}},"哈密地区":{val:"652200",items:{"哈密市":"652201","巴里坤哈萨克自治县":"652222","伊吾县":"652223"}},"昌吉回族自治州":{val:"652300",items:{"昌吉市":"652301","阜康市":"652302","米泉市":"652303","呼图壁县":"652323","玛纳斯县":"652324","奇台县":"652325","吉木萨尔县":"652327","木垒哈萨克自治县":"652328"}},"博尔塔拉蒙古自治州":{val:"652700",items:{"博乐市":"652701","精河县":"652722","温泉县":"652723"}},"巴音郭楞蒙古族自治州":{val:"652800",items:{"库尔勒市":"652801","轮台县":"652822","尉犁县":"652823","若羌县":"652824","且末县":"652825","焉耆回族自治县":"652826","和静县":"652827","和硕县":"652828","博湖县":"652829"}},"阿克苏地区":{val:"652900",items:{"阿克苏市":"652901","温宿县":"652922","库车县":"652923","沙雅县":"652924","新和县":"652925","拜城县":"652926","乌什县":"652927","阿瓦提县":"652928","柯坪县":"652929"}},"克孜勒苏柯尔克孜自治州":{val:"653000",items:{"阿图什市":"653001","阿克陶县":"653022","阿合奇县":"653023","乌恰县":"653024"}},"喀什地区":{val:"653100",items:{"喀什市":"653101","疏附县":"653121","疏勒县":"653122","英吉沙县":"653123","泽普县":"653124","莎车县":"653125","叶城县":"653126","麦盖提县":"653127","岳普湖县":"653128","伽师县":"653129","巴楚县":"653130","塔什库尔干塔吉克自治县":"653131"}},"和田地区":{val:"653200",items:{"和田市":"653201","和田县":"653221","墨玉县":"653222","皮山县":"653223","洛浦县":"653224","策勒县":"653225","于田县":"653226","民丰县":"653227"}},"伊犁哈萨克自治州":{val:"654000",items:{"奎屯市":"654001"}},"伊犁地区":{val:"654100",items:{"伊宁市":"654101","伊宁县":"654121","察布查尔锡伯自治县":"654122","霍城县":"654123","巩留县":"654124","新源县":"654125","昭苏县":"654126","特克斯县":"654127","尼勒克县":"654128"}},"塔城地区":{val:"654200",items:{"塔城市":"654201","乌苏市":"654202","额敏县":"654221","沙湾县":"654223","托里县":"654224","裕民县":"654225","和布克塞尔蒙古自治县":"654226"}},"阿勒泰地区":{val:"654300",items:{"阿勒泰市":"654301","布尔津县":"654321","富蕴县":"654322","福海县":"654323","哈巴河县":"654324","青河县":"654325","吉木乃县":"654326"}},"直辖行政单位":{val:"659000",items:{"石河子市":"659001"}}}},"台湾":{val:"710000",items:{}},"香港":{val:"810000",items:{}}};
demo.js
原始数据 复制代码
/**
* Created by sunying
*/
window.onload = function () {
var table = document.getElementById("cartTable");//购物车表格
var selectInputs = document.getElementsByClassName("check");//所有勾选框
var checkAllInputs = document.getElementsByClassName("check-all");//全选框
var selectedTotal = document.getElementById("selectedTotal");//已选商品数目
var tr = table.children[1].rows;//每一行的属性
var priceTotal = document.getElementById("priceTotal");//商品总价
var deleteAll = document.getElementById("deleteAll");//删除所有商品
var selectedViewList = document.getElementById("selectedViewList");//浮动层已选商品的列表
var selected = document.getElementById("selected");//已选商品
var foot = document.getElementById("foot");
//更新总数和总价
function getTotal(){
var selected = 0; //总数
var price = 0; //总价
var HTMLStr = "";
for(var i=0;i<tr.length;i++){
if(tr[i].getElementsByTagName('input')[0].checked){
selected += parseInt(tr[i].getElementsByTagName('input')[1].value);
price+= parseFloat(tr[i].cells[4].innerHTML);
// <div><img src="images/1.jpg"><span>取消选择</span></div>
HTMLStr+='<div><img src="'+tr[i].getElementsByTagName('img')[0].src+'"><span class="del" index="'+i+'">取消选择</span></div>'
}
}
selectedTotal.innerHTML = selected;
priceTotal.innerHTML =price.toFixed(2);
selectedViewList.innerHTML =HTMLStr;
//当没有商品的时候 我们不需要浮动层
if(selected==0){
foot.className="foot";
}
}
//计算单行价格
function getSubtotal(tr){
var cells = tr.cells;
var price = cells[2];//单价
var subTotal =cells[4]//单行小计
var countInput = tr.getElementsByTagName('input')[1];//数目的input
var span = tr.getElementsByTagName('span')[1]//-号
//写入结果
subTotal.innerHTML = (parseInt(countInput.value)*parseFloat(price.innerHTML)).toFixed(2);
//每次用户操作一次 我们都要判断一下 减号是否可用
if(countInput.value==1){
span.innerHTML ="";
}else{
span.innerHTML ="-";
}
}
//点击选择框
for(var i=0;i<selectInputs.length;i++){
selectInputs[i].onclick=function(){
if(this.className.indexOf("check-all")>=0){//全选状态
//把所有的选择框全勾选中
for(var j=0;j<selectInputs.length;j++){
selectInputs[j].checked = this.checked;
}
}
//只要有一个未勾选,取消全选框
if(!this.checked){
for(var i=0;i<checkAllInputs.length;i++){
checkAllInputs[i].checked = false;
}
}
getTotal();//选完更新总计
}
}
//显示已选商品的弹出层
selected.onclick=function(){
if(selectedTotal.innerHTML!=0){
foot.className = (foot.className=='foot'?'foot show':'foot');
}
}
//取消选择的按钮
selectedViewList.onclick=function(e){
//以后点击span或者其他无点击事件的标签 就这么写
var e = e||window.event;//让e变成一个可以操作的window.event独享
var el = e.target||e.srcElement;//通过实践对象的target属性获取触发元素
if(el.className=='del'){
var input = tr[el.getAttribute('index')].getElementsByTagName('input')[0];
input.checked = false;
input.onclick();
}
}
//常见的切换两种状态的方式
for(var i= 0;i<tr.length;i++){
tr[i].onclick = function(e){//e就是我们要操作的对象
var e = e||window.event;//让e变成一个可以操作的window.event独享
var el = e.target||e.srcElement;//通过实践对象的target属性获取触发元素
var cls = el.className;//给span去赋予 点击事件
var countInput = this.getElementsByTagName('input')[1];
var value = parseInt(countInput.value);//数目
switch(cls){
case 'add'://点击了加好
countInput.value = value+1;
getSubtotal(this);
break;
case 'reduce'://点击了减号
if(value>1){
countInput.value = value-1;
getSubtotal(this);
}
break;
case 'delete'://点击删除按钮
var conf = confirm("确定删除此商品么?");
if(conf){
//咱们要通过父控件删除该内容 但是怎么找父控件呢?
this.parentNode.removeChild(this);
}
break;
}
getTotal();
}
//给数目输入框这里加一个keyup事件
tr[i].getElementsByTagName('input')[1].onkeyup=function(){
var val =parseInt(this.value);
if(isNaN(val)||val<=0){
val = 1;
}
if(this.value!=val){
this.value=val;
}
getTotal();//更新总数
}
}
//点击删除指定对象
deleteAll.onclick=function(){
if(selectedTotal.innerHTML!=0){
var conf = confirm("确定删除指定商品吗?");
if(conf){
for(var i=0;i<tr.length;i++){
if(tr[i].getElementsByTagName("input")[0].checked){
//删除了第一个条目的是时候 我们下一个要删除的条目变成了tr[1]
tr[i].parentNode.removeChild(tr[i]);
i--;//把新的i坐标给新的对象
}
}
}
}else{
alert("请选择要删除的商品");
}
getTotal();//更新总数
}
checkAllInputs[0].checked=true;
checkAllInputs[0].onclick();
}
jiarugouwuche.js
原始数据 复制代码
function add(a){
var h1 = a.parentNode;//找到a的父节点
var tr1 = h1.childNodes;//再找到他的所有子节点
for(var i = 0; i < tr1.length; i++){
var b = tr1[i];//将所有子节点赋值给b
if(b.nodeName == "SPAN"){
//找到b下的span标签
var c = parseInt(b.innerHTML);//将找到b sapn的内容转化为整形赋值给c
c++;
b.innerHTML = c;
}
}
}
function jie(a){
var h1 = a.parentNode;//找到a的父节点
var tr1 = h1.childNodes;//再找到他的所有子节点
for(var i = 0; i < tr1.length; i++){
var b = tr1[i];//将所有子节点赋值给b
if(b.nodeName == "SPAN"){
//找到b下的span标签
var c = parseInt(b.innerHTML);//将找到b sapn的内容转化为整形赋值给c
if(c <= 1){
c = 1
}else{
c--;
}
b.innerHTML = c;
}
}
}

评论列表( 0 )

你可以在登录后,发表评论

搜索帮助

12_float_left_people 12_float_left_close