- 浏览: 42011 次
- 性别:
- 来自: 河北
文章分类
最新评论
-
GZQ0821:
我的xhr.status返回500,是什么意思???
JS+Ajax解析JSON的案例 -
xudongwang:
ASDFASDFASD
一个比较专业的权限控制思路 -
xudongwang:
adasdfasda
一个比较专业的权限控制思路 -
凤凰山:
让暴风雨来得更猛烈些吧。。。。。。。
一个比较专业的权限控制思路 -
relic6:
对权限的了解还不是很深,有时间研究实现下。。
一个比较专业的权限控制思路
之前曾刊发了一篇JS解析XML文件实现两级联动的博文,但是发现在Opera、火狐等浏览器中存在不兼容现象,于是今天特别写了一个全兼容的省、市、县(区)三级联动效果的案例。下面是实现代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>xmlDom.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type="text/javascript"> window.onload = function() { var xmlDoc = getXmlDoc(); var root = xmlDoc.documentElement; //获取xml文件中的根节点 var x_province = root.childNodes; //获取所有的省份节点 //获取jsp页面中select菜单中的省、市、县(区) var s_province = document.getElementById("province"); var s_city = document.getElementById("city"); var s_area = document.getElementById("area"); //遍历xml文件中的省份节点 for ( var i = 0; i < x_province.length; i++) { //判断当前节点是否是元素节点,以实现不同浏览器之间的兼容性 if (x_province[i].nodeType == 1) { //创建页面中省份的option对象 var sp_option = document.createElement("option"); sp_option.appendChild(document.createTextNode(x_province[i] .getAttribute("name"))); //为省份的option对象添加属性 sp_option.setAttribute("value", x_province[i] .getAttribute("postcode")); s_province.appendChild(sp_option); } } //选择省份下拉菜单时触发事件并处理 s_province.onchange = function() { //获取页面中省份节点下的所有option集合 var sp_opts = s_province.options; //获取选中option对象的下标值 var index = sp_opts.selectedIndex; //清空市、县(区) s_city.length = 0; s_area.length = 0; //获取页面中选中省份的value值 var sp_postcode = sp_opts[index].getAttribute("value"); for ( var j = 0; j < x_province.length; j++) { if (x_province[j].nodeType == 1) { var xp_postcode = x_province[j].getAttribute("postcode"); if (xp_postcode == sp_postcode) { var x_city = x_province[j].childNodes; s_city.length = 0; for ( var k = 0; k < x_city.length; k++) { if (x_city[k].nodeType == 1) { var sc_option = document.createElement("option"); sc_option.appendChild(document .createTextNode(x_city[k] .getAttribute("name"))); sc_option.setAttribute("value", x_city[k] .getAttribute("postcode")); s_city.appendChild(sc_option); } } break; } } } } s_city.onchange = function() { var sc_opts = s_city.options; var index = sc_opts.selectedIndex; var sc_postcode = sc_opts[index].getAttribute("value"); for ( var x = 0; x < x_province.length; x++) { if (x_province[x].nodeType == 1) { var x_city = x_province[x].childNodes; for ( var y = 0; y < x_city.length; y++) { if (x_city[y].nodeType == 1) { var xc_postcode = x_city[y].getAttribute("postcode"); if (xc_postcode == sc_postcode) { s_area.length = 0; var x_area = x_city[y].childNodes; for ( var z = 0; z < x_area.length; z++) { if (x_area[z].nodeType == 1) { var sa_option = document .createElement("option"); sa_option.appendChild(document .createTextNode(x_area[z] .getAttribute("name"))); sa_option.setAttribute("value", x_area[z] .getAttribute("postcode")); s_area.appendChild(sa_option); } } break; } } } } } } } //创建xmlDoc对象 function getXmlDoc() { var xmlDoc; try { //创建一个空的微软xmlDoc对象 xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); } catch (err1) { try { //创建一个空的其他浏览器厂商的xmlDoc对象(FF,Opera) xmlDoc = document.implementation.createDocument("", "", null); } catch (err2) { alert("您的浏览器不支持XMLDOM...."); } } xmlDoc.async = false; //关闭异步加载 xmlDoc.load("city.xml"); //加载xml文件 return xmlDoc; } </script> </head> <body> <h2> IE、FireFox、Opera全兼容的JS解析XML文件实现省、市、县(区)三级联动效果 </h2> <div> <span> <select id="province" style="width: 100px;"> </select> </span> <span> <select id="city" style="width: 100px;"> </select> </span> <span> <select id="area" style="width: 100px;"> </select> </span> </div> </body> </html>
以下是city.xml文件:
<?xml version="1.0" encoding="UTF-8"?> <root name="中国"> <province name="请选择省" postcode="100000"> <city name="请选择市" postcode="100100"> <area name="请选择区" postcode="100101" /> </city> </province> <province name="北京市" postcode="110000"> <city name="市辖区" postcode="110100"> <area name="东城区" postcode="110101" /> <area name="西城区" postcode="110102" /> <area name="崇文区" postcode="110103" /> <area name="宣武区" postcode="110104" /> <area name="朝阳区" postcode="110105" /> <area name="丰台区" postcode="110106" /> <area name="石景山区" postcode="110107" /> <area name="海淀区" postcode="110108" /> <area name="门头沟区" postcode="110109" /> <area name="房山区" postcode="110111" /> <area name="通州区" postcode="110112" /> <area name="顺义区" postcode="110113" /> <area name="昌平区" postcode="110114" /> <area name="大兴区" postcode="110115" /> <area name="怀柔区" postcode="110116" /> <area name="平谷区" postcode="110117" /> </city> <city name="县" postcode="110200"> <area name="密云县" postcode="110228" /> <area name="延庆县" postcode="110229" /> </city> </province> <province name="天津市" postcode="120000"> <city name="市辖区" postcode="120100"> <area name="和平区" postcode="120101" /> <area name="河东区" postcode="120102" /> <area name="河西区" postcode="120103" /> <area name="南开区" postcode="120104" /> <area name="河北区" postcode="120105" /> <area name="红桥区" postcode="120106" /> <area name="塘沽区" postcode="120107" /> <area name="汉沽区" postcode="120108" /> <area name="大港区" postcode="120109" /> <area name="东丽区" postcode="120110" /> <area name="西青区" postcode="120111" /> <area name="津南区" postcode="120112" /> <area name="北辰区" postcode="120113" /> <area name="武清区" postcode="120114" /> <area name="宝坻区" postcode="120115" /> </city> <city name="县" postcode="120200"> <area name="宁河县" postcode="120221" /> <area name="静海县" postcode="120223" /> <area name="蓟县" postcode="120225" /> </city> </province> <province name="河北省" postcode="130000"> <city name="石家庄市" postcode="130100"> <area name="长安区" postcode="130102" /> <area name="桥东区" postcode="130103" /> <area name="桥西区" postcode="130104" /> <area name="新华区" postcode="130105" /> <area name="井陉矿区" postcode="130107" /> <area name="裕华区" postcode="130108" /> <area name="井陉县" postcode="130121" /> <area name="正定县" postcode="130123" /> <area name="栾城县" postcode="130124" /> <area name="行唐县" postcode="130125" /> <area name="灵寿县" postcode="130126" /> <area name="高邑县" postcode="130127" /> <area name="深泽县" postcode="130128" /> <area name="赞皇县" postcode="130129" /> <area name="无极县" postcode="130130" /> <area name="平山县" postcode="130131" /> <area name="元氏县" postcode="130132" /> <area name="赵县" postcode="130133" /> <area name="辛集市" postcode="130181" /> <area name="藁城市" postcode="130182" /> <area name="晋州市" postcode="130183" /> <area name="新乐市" postcode="130184" /> <area name="鹿泉市" postcode="130185" /> </city> <city name="唐山市" postcode="130200"> <area name="路南区" postcode="130202" /> <area name="路北区" postcode="130203" /> <area name="古冶区" postcode="130204" /> <area name="开平区" postcode="130205" /> <area name="丰南区" postcode="130207" /> <area name="丰润区" postcode="130208" /> <area name="滦县" postcode="130223" /> <area name="滦南县" postcode="130224" /> <area name="乐亭县" postcode="130225" /> <area name="迁西县" postcode="130227" /> <area name="玉田县" postcode="130229" /> <area name="唐海县" postcode="130230" /> <area name="遵化市" postcode="130281" /> <area name="迁安市" postcode="130283" /> </city> <city name="秦皇岛市" postcode="130300"> <area name="海港区" postcode="130302" /> <area name="山海关区" postcode="130303" /> <area name="北戴河区" postcode="130304" /> <area name="青龙满族自治县" postcode="130321" /> <area name="昌黎县" postcode="130322" /> <area name="抚宁县" postcode="130323" /> <area name="卢龙县" postcode="130324" /> </city> <city name="邯郸市" postcode="130400"> <area name="邯山区" postcode="130402" /> <area name="丛台区" postcode="130403" /> <area name="复兴区" postcode="130404" /> <area name="峰峰矿区" postcode="130406" /> <area name="邯郸县" postcode="130421" /> <area name="临漳县" postcode="130423" /> <area name="成安县" postcode="130424" /> <area name="大名县" postcode="130425" /> <area name="涉县" postcode="130426" /> <area name="磁县" postcode="130427" /> <area name="肥乡县" postcode="130428" /> <area name="永年县" postcode="130429" /> <area name="邱县" postcode="130430" /> <area name="鸡泽县" postcode="130431" /> <area name="广平县" postcode="130432" /> <area name="馆陶县" postcode="130433" /> <area name="魏县" postcode="130434" /> <area name="曲周县" postcode="130435" /> <area name="武安市" postcode="130481" /> </city> <city name="邢台市" postcode="130500"> <area name="桥东区" postcode="130502" /> <area name="桥西区" postcode="130503" /> <area name="邢台县" postcode="130521" /> <area name="临城县" postcode="130522" /> <area name="内丘县" postcode="130523" /> <area name="柏乡县" postcode="130524" /> <area name="隆尧县" postcode="130525" /> <area name="任县" postcode="130526" /> <area name="南和县" postcode="130527" /> <area name="宁晋县" postcode="130528" /> <area name="巨鹿县" postcode="130529" /> <area name="新河县" postcode="130530" /> <area name="广宗县" postcode="130531" /> <area name="平乡县" postcode="130532" /> <area name="威县" postcode="130533" /> <area name="清河县" postcode="130534" /> <area name="临西县" postcode="130535" /> <area name="南宫市" postcode="130581" /> <area name="沙河市" postcode="130582" /> </city> <city name="保定市" postcode="130600"> <area name="新市区" postcode="130602" /> <area name="北市区" postcode="130603" /> <area name="南市区" postcode="130604" /> <area name="满城县" postcode="130621" /> <area name="清苑县" postcode="130622" /> <area name="涞水县" postcode="130623" /> <area name="阜平县" postcode="130624" /> <area name="徐水县" postcode="130625" /> <area name="定兴县" postcode="130626" /> <area name="唐县" postcode="130627" /> <area name="高阳县" postcode="130628" /> <area name="容城县" postcode="130629" /> <area name="涞源县" postcode="130630" /> <area name="望都县" postcode="130631" /> <area name="安新县" postcode="130632" /> <area name="易县" postcode="130633" /> <area name="曲阳县" postcode="130634" /> <area name="蠡县" postcode="130635" /> <area name="顺平县" postcode="130636" /> <area name="博野县" postcode="130637" /> <area name="雄县" postcode="130638" /> <area name="涿州市" postcode="130681" /> <area name="定州市" postcode="130682" /> <area name="安国市" postcode="130683" /> <area name="高碑店市" postcode="130684" /> </city> <city name="张家口市" postcode="130700"> <area name="桥东区" postcode="130702" /> <area name="桥西区" postcode="130703" /> <area name="宣化区" postcode="130705" /> <area name="下花园区" postcode="130706" /> <area name="宣化县" postcode="130721" /> <area name="张北县" postcode="130722" /> <area name="康保县" postcode="130723" /> <area name="沽源县" postcode="130724" /> <area name="尚义县" postcode="130725" /> <area name="蔚县" postcode="130726" /> <area name="阳原县" postcode="130727" /> <area name="怀安县" postcode="130728" /> <area name="万全县" postcode="130729" /> <area name="怀来县" postcode="130730" /> <area name="涿鹿县" postcode="130731" /> <area name="赤城县" postcode="130732" /> <area name="崇礼县" postcode="130733" /> </city> <city name="承德市" postcode="130800"> <area name="双桥区" postcode="130802" /> <area name="双滦区" postcode="130803" /> <area name="鹰手营子矿区" postcode="130804" /> <area name="承德县" postcode="130821" /> <area name="兴隆县" postcode="130822" /> <area name="平泉县" postcode="130823" /> <area name="滦平县" postcode="130824" /> <area name="隆化县" postcode="130825" /> <area name="丰宁满族自治县" postcode="130826" /> <area name="宽城满族自治县" postcode="130827" /> <area name="围场满族蒙古族自治县" postcode="130828" /> </city> <city name="沧州市" postcode="130900"> <area name="新华区" postcode="130902" /> <area name="运河区" postcode="130903" /> <area name="沧县" postcode="130921" /> <area name="青县" postcode="130922" /> <area name="东光县" postcode="130923" /> <area name="海兴县" postcode="130924" /> <area name="盐山县" postcode="130925" /> <area name="肃宁县" postcode="130926" /> <area name="南皮县" postcode="130927" /> <area name="吴桥县" postcode="130928" /> <area name="献县" postcode="130929" /> <area name="孟村回族自治县" postcode="130930" /> <area name="泊头市" postcode="130981" /> <area name="任丘市" postcode="130982" /> <area name="黄骅市" postcode="130983" /> <area name="河间市" postcode="130984" /> </city> <city name="廊坊市" postcode="131000"> <area name="安次区" postcode="131002" /> <area name="广阳区" postcode="131003" /> <area name="固安县" postcode="131022" /> <area name="永清县" postcode="131023" /> <area name="香河县" postcode="131024" /> <area name="大城县" postcode="131025" /> <area name="文安县" postcode="131026" /> <area name="大厂回族自治县" postcode="131028" /> <area name="霸州市" postcode="131081" /> <area name="三河市" postcode="131082" /> </city> <city name="衡水市" postcode="131100"> <area name="桃城区" postcode="131102" /> <area name="枣强县" postcode="131121" /> <area name="武邑县" postcode="131122" /> <area name="武强县" postcode="131123" /> <area name="饶阳县" postcode="131124" /> <area name="安平县" postcode="131125" /> <area name="故城县" postcode="131126" /> <area name="景县" postcode="131127" /> <area name="阜城县" postcode="131128" /> <area name="冀州市" postcode="131181" /> <area name="深州市" postcode="131182" /> </city> </province> <province name="山西省" postcode="140000"> <city name="太原市" postcode="140100"> <area name="小店区" postcode="140105" /> <area name="迎泽区" postcode="140106" /> <area name="杏花岭区" postcode="140107" /> <area name="尖草坪区" postcode="140108" /> <area name="万柏林区" postcode="140109" /> <area name="晋源区" postcode="140110" /> <area name="清徐县" postcode="140121" /> <area name="阳曲县" postcode="140122" /> <area name="娄烦县" postcode="140123" /> <area name="古交市" postcode="140181" /> </city> <city name="大同市" postcode="140200"> <area name="城区" postcode="140202" /> <area name="矿区" postcode="140203" /> <area name="南郊区" postcode="140211" /> <area name="新荣区" postcode="140212" /> <area name="阳高县" postcode="140221" /> <area name="天镇县" postcode="140222" /> <area name="广灵县" postcode="140223" /> <area name="灵丘县" postcode="140224" /> <area name="浑源县" postcode="140225" /> <area name="左云县" postcode="140226" /> <area name="大同县" postcode="140227" /> </city> <city name="阳泉市" postcode="140300"> <area name="城区" postcode="140302" /> <area name="矿区" postcode="140303" /> <area name="郊区" postcode="140311" /> <area name="平定县" postcode="140321" /> <area name="盂县" postcode="140322" /> </city> <city name="长治市" postcode="140400"> <area name="城区" postcode="140402" /> <area name="郊区" postcode="140411" /> <area name="长治县" postcode="140421" /> <area name="襄垣县" postcode="140423" /> <area name="屯留县" postcode="140424" /> <area name="平顺县" postcode="140425" /> <area name="黎城县" postcode="140426" /> <area name="壶关县" postcode="140427" /> <area name="长子县" postcode="140428" /> <area name="武乡县" postcode="140429" /> <area name="沁县" postcode="140430" /> <area name="沁源县" postcode="140431" /> <area name="潞城市" postcode="140481" /> </city> <city name="晋城市" postcode="140500"> <area name="城区" postcode="140502" /> <area name="沁水县" postcode="140521" /> <area name="阳城县" postcode="140522" /> <area name="陵川县" postcode="140524" /> <area name="泽州县" postcode="140525" /> <area name="高平市" postcode="140581" /> </city> <city name="朔州市" postcode="140600"> <area name="朔城区" postcode="140602" /> <area name="平鲁区" postcode="140603" /> <area name="山阴县" postcode="140621" /> <area name="应县" postcode="140622" /> <area name="右玉县" postcode="140623" /> <area name="怀仁县" postcode="140624" /> </city> <city name="晋中市" postcode="140700"> <area name="榆次区" postcode="140702" /> <area name="榆社县" postcode="140721" /> <area name="左权县" postcode="140722" /> <area name="和顺县" postcode="140723" /> <area name="昔阳县" postcode="140724" /> <area name="寿阳县" postcode="140725" /> <area name="太谷县" postcode="140726" /> <area name="祁县" postcode="140727" /> <area name="平遥县" postcode="140728" /> <area name="灵石县" postcode="140729" /> <area name="介休市" postcode="140781" /> </city> <city name="运城市" postcode="140800"> <area name="盐湖区" postcode="140802" /> <area name="临猗县" postcode="140821" /> <area name="万荣县" postcode="140822" /> <area name="闻喜县" postcode="140823" /> <area name="稷山县" postcode="140824" /> <area name="新绛县" postcode="140825" /> <area name="绛县" postcode="140826" /> <area name="垣曲县" postcode="140827" /> <area name="夏县" postcode="140828" /> <area name="平陆县" postcode="140829" /> <area name="芮城县" postcode="140830" /> <area name="永济市" postcode="140881" /> <area name="河津市" postcode="140882" /> </city> <city name="忻州市" postcode="140900"> <area name="忻府区" postcode="140902" /> <area name="定襄县" postcode="140921" /> <area name="五台县" postcode="140922" /> <area name="代县" postcode="140923" /> <area name="繁峙县" postcode="140924" /> <area name="宁武县" postcode="140925" /> <area name="静乐县" postcode="140926" /> <area name="神池县" postcode="140927" /> <area name="五寨县" postcode="140928" /> <area name="岢岚县" postcode="140929" /> <area name="河曲县" postcode="140930" /> <area name="保德县" postcode="140931" /> <area name="偏关县" postcode="140932" /> <area name="原平市" postcode="140981" /> </city> <city name="临汾市" postcode="141000"> <area name="尧都区" postcode="141002" /> <area name="曲沃县" postcode="141021" /> <area name="翼城县" postcode="141022" /> <area name="襄汾县" postcode="141023" /> <area name="洪洞县" postcode="141024" /> <area name="古县" postcode="141025" /> <area name="安泽县" postcode="141026" /> <area name="浮山县" postcode="141027" /> <area name="吉县" postcode="141028" /> <area name="乡宁县" postcode="141029" /> <area name="大宁县" postcode="141030" /> <area name="隰县" postcode="141031" /> <area name="永和县" postcode="141032" /> <area name="蒲县" postcode="141033" /> <area name="汾西县" postcode="141034" /> <area name="侯马市" postcode="141081" /> <area name="霍州市" postcode="141082" /> </city> <city name="吕梁市" postcode="141100"> <area name="离石区" postcode="141102" /> <area name="文水县" postcode="141121" /> <area name="交城县" postcode="141122" /> <area name="兴县" postcode="141123" /> <area name="临县" postcode="141124" /> <area name="柳林县" postcode="141125" /> <area name="石楼县" postcode="141126" /> <area name="岚县" postcode="141127" /> <area name="方山县" postcode="141128" /> <area name="中阳县" postcode="141129" /> <area name="交口县" postcode="141130" /> <area name="孝义市" postcode="141181" /> <area name="汾阳市" postcode="141182" /> </city> </province> <province name="内蒙古自治区" postcode="150000"> <city name="呼和浩特市" postcode="150100"> <area name="新城区" postcode="150102" /> <area name="回民区" postcode="150103" /> <area name="玉泉区" postcode="150104" /> <area name="赛罕区" postcode="150105" /> <area name="土默特左旗" postcode="150121" /> <area name="托克托县" postcode="150122" /> <area name="和林格尔县" postcode="150123" /> <area name="清水河县" postcode="150124" /> <area name="武川县" postcode="150125" /> </city> <city name="包头市" postcode="150200"> <area name="东河区" postcode="150202" /> <area name="昆都仑区" postcode="150203" /> <area name="青山区" postcode="150204" /> <area name="石拐区" postcode="150205" /> <area name="白云矿区" postcode="150206" /> <area name="九原区" postcode="150207" /> <area name="土默特右旗" postcode="150221" /> <area name="固阳县" postcode="150222" /> <area name="达尔罕茂明安联合旗" postcode="150223" /> </city> <city name="乌海市" postcode="150300"> <area name="海勃湾区" postcode="150302" /> <area name="海南区" postcode="150303" /> <area name="乌达区" postcode="150304" /> </city> <city name="赤峰市" postcode="150400"> <area name="红山区" postcode="150402" /> <area name="元宝山区" postcode="150403" /> <area name="松山区" postcode="150404" /> <area name="阿鲁科尔沁旗" postcode="150421" /> <area name="巴林左旗" postcode="150422" /> <area name="巴林右旗" postcode="150423" /> <area name="林西县" postcode="150424" /> <area name="克什克腾旗" postcode="150425" /> <area name="翁牛特旗" postcode="150426" /> <area name="喀喇沁旗" postcode="150428" /> <area name="宁城县" postcode="150429" /> <area name="敖汉旗" postcode="150430" /> </city> <city name="通辽市" postcode="150500"> <area name="科尔沁区" postcode="150502" /> <area name="科尔沁左翼中旗" postcode="150521" /> <area name="科尔沁左翼后旗" postcode="150522" /> <area name="开鲁县" postcode="150523" /> <area name="库伦旗" postcode="150524" /> <area name="奈曼旗" postcode="150525" /> <area name="扎鲁特旗" postcode="150526" /> <area name="霍林郭勒市" postcode="150581" /> </city> <city name="鄂尔多斯市" postcode="150600"> <area name="东胜区" postcode="150602" /> <area name="达拉特旗" postcode="150621" /> <area name="准格尔旗" postcode="150622" /> <area name="鄂托克前旗" postcode="150623" /> <area name="鄂托克旗" postcode="150624" /> <area name="杭锦旗" postcode="150625" /> <area name="乌审旗" postcode="150626" /> <area name="伊金霍洛旗" postcode="150627" /> </city> <city name="呼伦贝尔市" postcode="150700"> <area name="海拉尔区" postcode="150702" /> <area name="阿荣旗" postcode="150721" /> <area name="莫力达瓦达斡尔族自治旗" postcode="150722" /> <area name="鄂伦春自治旗" postcode="150723" /> <area name="鄂温克族自治旗" postcode="150724" /> <area name="陈巴尔虎旗" postcode="150725" /> <area name="新巴尔虎左旗" postcode="150726" /> <area name="新巴尔虎右旗" postcode="150727" /> <area name="满洲里市" postcode="150781" /> <area name="牙克石市" postcode="150782" /> <area name="扎兰屯市" postcode="150783" /> <area name="额尔古纳市" postcode="150784" /> <area name="根河市" postcode="150785" /> </city> <city name="巴彦淖尔市" postcode="150800"> <area name="临河区" postcode="150802" /> <area name="五原县" postcode="150821" /> <area name="磴口县" postcode="150822" /> <area name="乌拉特前旗" postcode="150823" /> <area name="乌拉特中旗" postcode="150824" /> <area name="乌拉特后旗" postcode="150825" /> <area name="杭锦后旗" postcode="150826" /> </city> <city name="乌兰察布市" postcode="150900"> <area name="集宁区" postcode="150902" /> <area name="卓资县" postcode="150921" /> <area name="化德县" postcode="150922" /> <area name="商都县" postcode="150923" /> <area name="兴和县" postcode="150924" /> <area name="凉城县" postcode="150925" /> <area name="察哈尔右翼前旗" postcode="150926" /> <area name="察哈尔右翼中旗" postcode="150927" /> <area name="察哈尔右翼后旗" postcode="150928" /> <area name="四子王旗" postcode="150929" /> <area name="丰镇市" postcode="150981" /> </city> <city name="兴安盟" postcode="152200"> <area name="乌兰浩特市" postcode="152201" /> <area name="阿尔山市" postcode="152202" /> <area name="科尔沁右翼前旗" postcode="152221" /> <area name="科尔沁右翼中旗" postcode="152222" /> <area name="扎赉特旗" postcode="152223" /> <area name="突泉县" postcode="152224" /> </city> <city name="锡林郭勒盟" postcode="152500"> <area name="二连浩特市" postcode="152501" /> <area name="锡林浩特市" postcode="152502" /> <area name="阿巴嘎旗" postcode="152522" /> <area name="苏尼特左旗" postcode="152523" /> <area name="苏尼特右旗" postcode="152524" /> <area name="东乌珠穆沁旗" postcode="152525" /> <area name="西乌珠穆沁旗" postcode="152526" /> <area name="太仆寺旗" postcode="152527" /> <area name="镶黄旗" postcode="152528" /> <area name="正镶白旗" postcode="152529" /> <area name="正蓝旗" postcode="152530" /> <area name="多伦县" postcode="152531" /> </city> <city name="阿拉善盟" postcode="152900"> <area name="阿拉善左旗" postcode="152921" /> <area name="阿拉善右旗" postcode="152922" /> <area name="额济纳旗" postcode="152923" /> </city> </province> <province name="辽宁省" postcode="210000"> <city name="沈阳市" postcode="210100"> <area name="和平区" postcode="210102" /> <area name="沈河区" postcode="210103" /> <area name="大东区" postcode="210104" /> <area name="皇姑区" postcode="210105" /> <area name="铁西区" postcode="210106" /> <area name="苏家屯区" postcode="210111" /> <area name="东陵区" postcode="210112" /> <area name="沈北新区" postcode="210113" /> <area name="于洪区" postcode="210114" /> <area name="辽中县" postcode="210122" /> <area name="康平县" postcode="210123" /> <area name="法库县" postcode="210124" /> <area name="新民市" postcode="210181" /> </city> <city name="大连市" postcode="210200"> <area name="中山区" postcode="210202" /> <area name="西岗区" postcode="210203" /> <area name="沙河口区" postcode="210204" /> <area name="甘井子区" postcode="210211" /> <area name="旅顺口区" postcode="210212" /> <area name="金州区" postcode="210213" /> <area name="长海县" postcode="210224" /> <area name="瓦房店市" postcode="210281" /> <area name="普兰店市" postcode="210282" /> <area name="庄河市" postcode="210283" /> </city> <city name="鞍山市" postcode="210300"> <area name="铁东区" postcode="210302" /> <area name="铁西区" postcode="210303" /> <area name="立山区" postcode="210304" /> <area name="千山区" postcode="210311" /> <area name="台安县" postcode="210321" /> <area name="岫岩满族自治县" postcode="210323" /> <area name="海城市" postcode="210381" /> </city> <city name="抚顺市" postcode="210400"> <area name="新抚区" postcode="210402" /> <area name="东洲区" postcode="210403" /> <area name="望花区" postcode="210404" /> <area name="顺城区" postcode="210411" /> <area name="抚顺县" postcode="210421" /> <area name="新宾满族自治县" postcode="210422" /> <area name="清原满族自治县" postcode="210423" /> </city> <city name="本溪市" postcode="210500"> <area name="平山区" postcode="210502" /> <area name="溪湖区" postcode="210503" /> <area name="明山区" postcode="210504" /> <area name="南芬区" postcode="210505" /> <area name="本溪满族自治县" postcode="210521" /> <area name="桓仁满族自治县" postcode="210522" /> </city> <city name="丹东市" postcode="210600"> <area name="元宝区" postcode="210602" /> <area name="振兴区" postcode="210603" /> <area name="振安区" postcode="210604" /> <area name="宽甸满族自治县" postcode="210624" /> <area name="东港市" postcode="210681" /> <area name="凤城市" postcode="210682" /> </city> <city name="锦州市" postcode="210700"> <area name="古塔区" postcode="210702" /> <area name="凌河区" postcode="210703" /> <area name="太和区" postcode="210711" /> <area name="黑山县" postcode="210726" /> <area name="义县" postcode="210727" /> <area name="凌海市" postcode="210781" /> <area name="北镇市" postcode="210782" /> </city> <city name="营口市" postcode="210800"> <area name="站前区" postcode="210802" /> <area name="西市区" postcode="210803" /> <area name="鲅鱼圈区" postcode="210804" /> <area name="老边区" postcode="210811" /> <area name="盖州市" postcode="210881" /> <area name="大石桥市" postcode="210882" /> </city> <city name="阜新市" postcode="210900"> <area name="海州区" postcode="210902" /> <area name="新邱区" postcode="210903" /> <area name="太平区" postcode="210904" /> <area name="清河门区" postcode="210905" /> <area name="细河区" postcode="210911" /> <area name="阜新蒙古族自治县" postcode="210921" /> <area name="彰武县" postcode="210922" /> </city> <city name="辽阳市" postcode="211000"> <area name="白塔区" postcode="211002" /> <area name="文圣区" postcode="211003" /> <area name="宏伟区" postcode="211004" /> <area name="弓长岭区" postcode="211005" /> <area name="太子河区" postcode="211011" /> <area name="辽阳县" postcode="211021" /> <area name="灯塔市" postcode="211081" /> </city> <city name="盘锦市" postcode="211100"> <area name="双台子区" postcode="211102" /> <area name="兴隆台区" postcode="211103" /> <area name="大洼县" postcode="211121" /> <area name="盘山县" postcode="211122" /> </city> <city name="铁岭市" postcode="211200"> <area name="银州区" postcode="211202" /> <area name="清河区" postcode="211204" /> <area name="铁岭县" postcode="211221" /> <area name="西丰县" postcode="211223" /> <area name="昌图县" postcode="211224" /> <area name="调兵山市" postcode="211281" /> <area name="开原市" postcode="211282" /> </city> <city name="朝阳市" postcode="211300"> <area name="双塔区" postcode="211302" /> <area name="龙城区" postcode="211303" /> <area name="朝阳县" postcode="211321" /> <area name="建平县" postcode="211322" /> <area name="喀喇沁左翼蒙古族自治县" postcode="211324" /> <area name="北票市" postcode="211381" /> <area name="凌源市" postcode="211382" /> </city> <city name="葫芦岛市" postcode="211400"> <area name="连山区" postcode="211402" /> <area name="龙港区" postcode="211403" /> <area name="南票区" postcode="211404" /> <area name="绥中县" postcode="211421" /> <area name="建昌县" postcode="211422" /> <area name="兴城市" postcode="211481" /> </city> </province> <province name="吉林省" postcode="220000"> <city name="长春市" postcode="220100"> <area name="南关区" postcode="220102" /> <area name="宽城区" postcode="220103" /> <area name="朝阳区" postcode="220104" /> <area name="二道区" postcode="220105" /> <area name="绿园区" postcode="220106" /> <area name="双阳区" postcode="220112" /> <area name="农安县" postcode="220122" /> <area name="九台市" postcode="220181" /> <area name="榆树市" postcode="220182" /> <area name="德惠市" postcode="220183" /> </city> <city name="吉林市" postcode="220200"> <area name="昌邑区" postcode="220202" /> <area name="龙潭区" postcode="220203" /> <area name="船营区" postcode="220204" /> <area name="丰满区" postcode="220211" /> <area name="永吉县" postcode="220221" /> <area name="蛟河市" postcode="220281" /> <area name="桦甸市" postcode="220282" /> <area name="舒兰市" postcode="220283" /> <area name="磐石市" postcode="220284" /> </city> <city name="四平市" postcode="220300"> <area name="铁西区" postcode="220302" /> <area name="铁东区" postcode="220303" /> <area name="梨树县" postcode="220322" /> <area name="伊通满族自治县" postcode="220323" /> <area name="公主岭市" postcode="220381" /> <area name="双辽市" postcode="220382" /> </city> <city name="辽源市" postcode="220400"> <area name="龙山区" postcode="220402" /> <area name="西安区" postcode="220403" /> <area name="东丰县" postcode="220421" /> <area name="东辽县" postcode="220422" /> </city> <city name="通化市" postcode="220500"> <area name="东昌区" postcode="220502" /> <area name="二道江区" postcode="220503" /> <area name="通化县" postcode="220521" /> <area name="辉南县" postcode="220523" /> <area name="柳河县" postcode="220524" /> <area name="梅河口市" postcode="220581" /> <area name="集安市" postcode="220582" /> </city> <city name="白山市" postcode="220600"> <area name="八道江区" postcode="220602" /> <area name="江源区" postcode="220604" /> <area name="抚松县" postcode="220621" /> <area name="靖宇县" postcode="220622" /> <area name="长白朝鲜族自治县" postcode="220623" /> <area name="临江市" postcode="220681" /> </city> <city name="松原市" postcode="220700"> <area name="宁江区" postcode="220702" /> <area name="前郭尔罗斯蒙古族自治县" postcode="220721" /> <area name="长岭县" postcode="220722" /> <area name="乾安县" postcode="220723" /> <area name="扶余县" postcode="220724" /> </city> <city name="白城市" postcode="220800"> <area name="洮北区" postcode="220802" /> <area name="镇赉县" postcode="220821" /> <area name="通榆县" postcode="220822" /> <area name="洮南市" postcode="220881" /> <area name="大安市" postcode="220882" /> </city> <city name="延边朝鲜族自治州" postcode="222400"> <area name="延吉市" postcode="222401" /> <area name="图们市" postcode="222402" /> <area name="敦化市" postcode="222403" /> <area name="珲春市" postcode="222404" /> <area name="龙井市" postcode="222405" /> <area name="和龙市" postcode="222406" /> <area name="汪清县" postcode="222424" /> <area name="安图县" postcode="222426" /> </city> </province> <province name="黑龙江省" postcode="230000"> <city name="哈尔滨市" postcode="230100"> <area name="道里区" postcode="230102" /> <area name="南岗区" postcode="230103" /> <area name="道外区" postcode="230104" /> <area name="平房区" postcode="230108" /> <area name="松北区" postcode="230109" /> <area name="香坊区" postcode="230110" /> <area name="呼兰区" postcode="230111" /> <area name="阿城区" postcode="230112" /> <area name="依兰县" postcode="230123" /> <area name="方正县" postcode="230124" /> <area name="宾县" postcode="230125" /> <area name="巴彦县" postcode="230126" /> <area name="木兰县" postcode="230127" /> <area name="通河县" postcode="230128" /> <area name="延寿县" postcode="230129" /> <area name="双城市" postcode="230182" /> <area name="尚志市" postcode="230183" /> <area name="五常市" postcode="230184" /> </city> <city name="齐齐哈尔市" postcode="230200"> <area name="龙沙区" postcode="230202" /> <area name="建华区" postcode="230203" /> <area name="铁锋区" postcode="230204" /> <area name="昂昂溪区" postcode="230205" /> <area name="富拉尔基区" postcode="230206" /> <area name="碾子山区" postcode="230207" /> <area name="梅里斯达斡尔族区" postcode="230208" /> <area name="龙江县" postcode="230221" /> <area name="依安县" postcode="230223" /> <area name="泰来县" postcode="230224" /> <area name="甘南县" postcode="230225" /> <area name="富裕县" postcode="230227" /> <area name="克山县" postcode="230229" /> <area name="克东县" postcode="230230" /> <area name="拜泉县" postcode="230231" /> <area name="讷河市" postcode="230281" /> </city> <city name="鸡西市" postcode="230300"> <area name="鸡冠区" postcode="230302" /> <area name="恒山区" postcode="230303" /> <area name="滴道区" postcode="230304" /> <area name="梨树区" postcode="230305" /> <area name="城子河区" postcode="230306" /> <area name="麻山区" postcode="230307" /> <area name="鸡东县" postcode="230321" /> <area name="虎林市" postcode="230381" /> <area name="密山市" postcode="230382" /> </city> <city name="鹤岗市" postcode="230400"> <area name="向阳区" postcode="230402" /> <area name="工农区" postcode="230403" /> <area name="南山区" postcode="230404" /> <area name="兴安区" postcode="230405" /> <area name="东山区" postcode="230406" /> <area name="兴山区" postcode="230407" /> <area name="萝北县" postcode="230421" /> <area name="绥滨县" postcode="230422" /> </city> <city name="双鸭山市" postcode="230500"> <area name="尖山区" postcode="230502" /> <area name="岭东区" postcode="230503" /> <area name="四方台区" postcode="230505" /> <area name="宝山区" postcode="230506" /> <area name="集贤县" postcode="230521" /> <area name="友谊县" postcode="230522" /> <area name="宝清县" postcode="230523" /> <area name="饶河县" postcode="230524" /> </city> <city name="大庆市" postcode="230600"> <area name="萨尔图区" postcode="230602" /> <area name="龙凤区" postcode="230603" /> <area name="让胡路区" postcode="230604" /> <area name="红岗区" postcode="230605" /> <area name="大同区" postcode="230606" /> <area name="肇州县" postcode="230621" /> <area name="肇源县" postcode="230622" /> <area name="林甸县" postcode="230623" /> <area name="杜尔伯特蒙古族自治县" postcode="230624" /> </city> <city name="伊春市" postcode="230700"> <area name="伊春区" postcode="230702" /> <area name="南岔区" postcode="230703" /> <area name="友好区" postcode="230704" /> <area name="西林区" postcode="230705" /> <area name="翠峦区" postcode="230706" /> <area name="新青区" postcode="230707" /> <area name="美溪区" postcode="230708" /> <area name="金山屯区" postcode="230709" /> <area name="五营区" postcode="230710" /> <area name="乌马河区" postcode="230711" /> <area name="汤旺河区" postcode="230712" /> <area name="带岭区" postcode="230713" /> <area name="乌伊岭区" postcode="230714" /> <area name="红星区" postcode="230715" /> <area name="上甘岭区" postcode="230716" /> <area name="嘉荫县" postcode="230722" /> <area name="铁力市" postcode="230781" /> </city> <city name="佳木斯市" postcode="230800"> <area name="向阳区" postcode="230803" /> <area name="前进区" postcode="230804" /> <area name="东风区" postcode="230805" /> <area name="郊区" postcode="230811" /> <area name="桦南县" postcode="230822" /> <area name="桦川县" postcode="230826" /> <area name="汤原县" postcode="230828" /> <area name="抚远县" postcode="230833" /> <area name="同江市" postcode="230881" /> <area name="富锦市" postcode="230882" /> </city> <city name="七台河市" postcode="230900"> <area name="新兴区" postcode="230902" /> <area name="桃山区" postcode="230903" /> <area name="茄子河区" postcode="230904" /> <area name="勃利县" postcode="230921" /> </city> <city name="牡丹江市" postcode="231000"> <area name="东安区" postcode="231002" /> <area name="阳明区" postcode="231003" /> <area name="爱民区" postcode="231004" /> <area name="西安区" postcode="231005" /> <area name="东宁县" postcode="231024" /> <area name="林口县" postcode="231025" /> <area name="绥芬河市" postcode="231081" /> <area name="海林市" postcode="231083" /> <area name="宁安市" postcode="231084" /> <area name="穆棱市" postcode="231085" /> </city> <city name="黑河市" postcode="231100"> <area name="爱辉区" postcode="231102" /> <area name="嫩江县" postcode="231121" /> <area name="逊克县" postcode="231123" /> <area name="孙吴县" postcode="231124" /> <area name="北安市" postcode="231181" /> <area name="五大连池市" postcode="231182" /> </city> <city name="绥化市" postcode="231200"> <area name="北林区" postcode="231202" /> <area name="望奎县" postcode="231221" /> <area name="兰西县" postcode="231222" /> <area name="青冈县" postcode="231223" /> <area name="庆安县" postcode="231224" /> <area name="明水县" postcode="231225" /> <area name="绥棱县" postcode="231226" /> <area name="安达市" postcode="231281" /> <area name="肇东市" postcode="231282" /> <area name="海伦市" postcode="231283" /> </city> <city name="大兴安岭地区" postcode="232700"> <area name="加格达奇区" postcode="232701" /> <area name="松岭区" postcode="232702" /> <area name="新林区" postcode="232703" /> <area name="呼中区" postcode="232704" /> <area name="呼玛县" postcode="232721" /> <area name="塔河县" postcode="232722" /> <area name="漠河县" postcode="232723" /> </city> </province> <province name="上海市" postcode="310000"> <city name="市辖区" postcode="310100"> <area name="黄浦区" postcode="310101" /> <area name="卢湾区" postcode="310103" /> <area name="徐汇区" postcode="310104" /> <area name="长宁区" postcode="310105" /> <area name="静安区" postcode="310106" /> <area name="普陀区" postcode="310107" /> <area name="闸北区" postcode="310108" /> <area name="虹口区" postcode="310109" /> <area name="杨浦区" postcode="310110" /> <area name="闵行区" postcode="310112" /> <area name="宝山区" postcode="310113" /> <area name="嘉定区" postcode="310114" /> <area name="浦东新区" postcode="310115" /> <area name="金山区" postcode="310116" /> <area name="松江区" postcode="310117" /> <area name="青浦区" postcode="310118" /> <area name="南汇区" postcode="310119" /> <area name="奉贤区" postcode="310120" /> </city> <city name="县" postcode="310200"> <area name="崇明县" postcode="310230" /> </city> </province> <province name="江苏省" postcode="320000"> <city name="南京市" postcode="320100"> <area name="玄武区" postcode="320102" /> <area name="白下区" postcode="320103" /> <area name="秦淮区" postcode="320104" /> <area name="建邺区" postcode="320105" /> <area name="鼓楼区" postcode="320106" /> <area name="下关区" postcode="320107" /> <area name="浦口区" postcode="320111" /> <area name="栖霞区" postcode="320113" /> <area name="雨花台区" postcode="320114" /> <area name="江宁区" postcode="320115" /> <area name="六合区" postcode="320116" /> <area name="溧水县" postcode="320124" /> <area name="高淳县" postcode="320125" /> </city> <city name="无锡市" postcode="320200"> <area name="崇安区" postcode="320202" /> <area name="南长区" postcode="320203" /> <area name="北塘区" postcode="320204" /> <area name="锡山区" postcode="320205" /> <area name="惠山区" postcode="320206" /> <area name="滨湖区" postcode="320211" /> <area name="江阴市" postcode="320281" /> <area name="宜兴市" postcode="320282" /> </city> <city name="徐州市" postcode="320300"> <area name="鼓楼区" postcode="320302" /> <area name="云龙区" postcode="320303" /> <area name="九里区" postcode="320304" /> <area name="贾汪区" postcode="320305" /> <area name="泉山区" postcode="320311" /> <area name="丰县" postcode="320321" /> <area name="沛县" postcode="320322" /> <area name="铜山县" postcode="320323" /> <area name="睢宁县" postcode="320324" /> <area name="新沂市" postcode="320381" /> <area name="邳州市" postcode="320382" /> </city> <city name="常州市" postcode="320400"> <area name="天宁区" postcode="320402" /> <area name="钟楼区" postcode="320404" /> <area name="戚墅堰区" postcode="320405" /> <area name="新北区" postcode="320411" /> <area name="武进区" postcode="320412" /> <area name="溧阳市" postcode="320481" /> <area name="金坛市" postcode="320482" /> </city> <city name="苏州市" postcode="320500"> <area name="沧浪区" postcode="320502" /> <area name="平江区" postcode="320503" /> <area name="金阊区" postcode="320504" /> <area name="虎丘区" postcode="320505" /> <area name="吴中区" postcode="320506" /> <area name="相城区" postcode="320507" /> <area name="常熟市" postcode="320581" /> <area name="张家港市" postcode="320582" /> <area name="昆山市" postcode="320583" /> <area name="吴江市" postcode="320584" /> <area name="太仓市" postcode="320585" /> </city> <city name="南通市" postcode="320600"> <area name="崇川区" postcode="320602" /> <area name="港闸区" postcode="320611" /> <area name="海安县" postcode="320621" /> <area name="如东县" postcode="320623" /> <area name="启东市" postcode="320681" /> <area name="如皋市" postcode="320682" /> <area name="通州市" postcode="320683" /> <area name="海门市" postcode="320684" /> </city> <city name="连云港市" postcode="320700"> <area name="连云区" postcode="320703" /> <area name="新浦区" postcode="320705" /> <area name="海州区" postcode="320706" /> <area name="赣榆县" postcode="320721" /> <area name="东海县" postcode="320722" /> <area name="灌云县" postcode="320723" /> <area name="灌南县" postcode="320724" /> </city> <city name="淮安市" postcode="320800"> <area name="清河区" postcode="320802" /> <area name="楚州区" postcode="320803" /> <area name="淮阴区" postcode="320804" /> <area name="清浦区" postcode="320811" /> <area name="涟水县" postcode="320826" /> <area name="洪泽县" postcode="320829" /> <area name="盱眙县" postcode="320830" /> <area name="金湖县" postcode="320831" /> </city> <city name="盐城市" postcode="320900"> <area name="亭湖区" postcode="320902" /> <area name="盐都区" postcode="320903" /> <area name="响水县" postcode="320921" /> <area name="滨海县" postcode="320922" /> <area name="阜宁县" postcode="320923" /> <area name="射阳县" postcode="320924" /> <area name="建湖县" postcode="320925" /> <area name="东台市" postcode="320981" /> <area name="大丰市" postcode="320982" /> </city> <city name="扬州市" postcode="321000"> <area name="广陵区" postcode="321002" /> <area name="邗江区" postcode="321003" /> <area name="维扬区" postcode="321011" /> <area name="宝应县" postcode="321023" /> <area name="仪征市" postcode="321081" /> <area name="高邮市" postcode="321084" /> <area name="江都市" postcode="321088" /> </city> <city name="镇江市" postcode="321100"> <area name="京口区" postcode="321102" /> <area name="润州区" postcode="321111" /> <area name="丹徒区" postcode="321112" /> <area name="丹阳市" postcode="321181" /> <area name="扬中市" postcode="321182" /> <area name="句容市" postcode="321183" /> </city> <city name="泰州市" postcode="321200"> <area name="海陵区" postcode="321202" /> <area name="高港区" postcode="321203" /> <area name="兴化市" postcode="321281" /> <area name="靖江市" postcode="321282" /> <area name="泰兴市" postcode="321283" /> <area name="姜堰市" postcode="321284" /> </city> <city name="宿迁市" postcode="321300"> <area name="宿城区" postcode="321302" /> <area name="宿豫区" postcode="321311" /> <area name="沭阳县" postcode="321322" /> <area name="泗阳县" postcode="321323" /> <area name="泗洪县" postcode="321324" /> </city> </province> <province name="浙江省" postcode="330000"> <city name="杭州市" postcode="330100"> <area name="上城区" postcode="330102" /> <area name="下城区" postcode="330103" /> <area name="江干区" postcode="330104" /> <area name="拱墅区" postcode="330105" /> <area name="西湖区" postcode="330106" /> <area name="滨江区" postcode="330108" /> <area name="萧山区" postcode="330109" /> <area name="余杭区" postcode="330110" /> <area name="桐庐县" postcode="330122" /> <area name="淳安县" postcode="330127" /> <area name="建德市" postcode="330182" /> <area name="富阳市" postcode="330183" /> <area name="临安市" postcode="330185" /> </city> <city name="宁波市" postcode="330200"> <area name="海曙区" postcode="330203" /> <area name="江东区" postcode="330204" /> <area name="江北区" postcode="330205" /> <area name="北仑区" postcode="330206" /> <area name="镇海区" postcode="330211" /> <area name="鄞州区" postcode="330212" /> <area name="象山县" postcode="330225" /> <area name="宁海县" postcode="330226" /> <area name="余姚市" postcode="330281" /> <area name="慈溪市" postcode="330282" /> <area name="奉化市" postcode="330283" /> </city> <city name="温州市" postcode="330300"> <area name="鹿城区" postcode="330302" /> <area name="龙湾区" postcode="330303" /> <area name="瓯海区" postcode="330304" /> <area name="洞头县" postcode="330322" /> <area name="永嘉县" postcode="330324" /> <area name="平阳县" postcode="330326" /> <area name="苍南县" postcode="330327" /> <area name="文成县" postcode="330328" /> <area name="泰顺县" postcode="330329" /> <area name="瑞安市" postcode="330381" /> <area name="乐清市" postcode="330382" /> </city> <city name="嘉兴市" postcode="330400"> <area name="秀城区" postcode="330402" /> <area name="秀洲区" postcode="330411" /> <area name="嘉善县" postcode="330421" /> <area name="海盐县" postcode="330424" /> <area name="海宁市" postcode="330481" /> <area name="平湖市" postcode="330482" /> <area name="桐乡市" postcode="330483" /> </city> <city name="湖州市" postcode="330500"> <area name="吴兴区" postcode="330502" /> <area name="南浔区" postcode="330503" /> <area name="德清县" postcode="330521" /> <area name="长兴县" postcode="330522" /> <area name="安吉县" postcode="330523" /> </city> <city name="绍兴市" postcode="330600"> <area name="越城区" postcode="330602" /> <area name="绍兴县" postcode="330621" /> <area name="新昌县" postcode="330624" /> <area name="诸暨市" postcode="330681" /> <area name="上虞市" postcode="330682" /> <area name="嵊州市" postcode="330683" /> </city> <city name="金华市" postcode="330700"> <area name="婺城区" postcode="330702" /> <area name="金东区" postcode="330703" /> <area name="武义县" postcode="330723" /> <area name="浦江县" postcode="330726" /> <area name="磐安县" postcode="330727" /> <area name="兰溪市" postcode="330781" /> <area name="义乌市" postcode="330782" /> <area name="东阳市" postcode="330783" /> <area name="永康市" postcode="330784" /> </city> <city name="衢州市" postcode="330800"> <area name="柯城区" postcode="330802" /> <area name="衢江区" postcode="330803" /> <area name="常山县" postcode="330822" /> <area name="开化县" postcode="330824" /> <area name="龙游县" postcode="330825" /> <area name="江山市" postcode="330881" /> </city> <city name="舟山市" postcode="330900"> <area name="定海区" postcode="330902" /> <area name="普陀区" postcode="330903" /> <area name="岱山县" postcode="330921" /> <area name="嵊泗县" postcode="330922" /> </city> <city name="台州市" postcode="331000"> <area name="椒江区" postcode="331002" /> <area name="黄岩区" postcode="331003" /> <area name="路桥区" postcode="331004" /> <area name="玉环县" postcode="331021" /> <area name="三门县" postcode="331022" /> <area name="天台县" postcode="331023" /> <area name="仙居县" postcode="331024" /> <area name="温岭市" postcode="331081" /> <area name="临海市" postcode="331082" /> </city> <city name="丽水市" postcode="331100"> <area name="莲都区" postcode="331102" /> <area name="青田县" postcode="331121" /> <area name="缙云县" postcode="331122" /> <area name="遂昌县" postcode="331123" /> <area name="松阳县" postcode="331124" /> <area name="云和县" postcode="331125" /> <area name="庆元县" postcode="331126" /> <area name="景宁畲族自治县" postcode="331127" /> <area name="龙泉市" postcode="331181" /> </city> </province></root>
相关推荐
综上所述,"JS+XML 省市区三级联动 支持ie,firefox,Opera"这个项目旨在提供一个跨浏览器的解决方案,利用JavaScript和XML技术实现在网页上创建一个交互式的省市区选择器。这个方案不仅可以提高用户体验,还能适应...
总结来说,这个成功的实例展示了如何用JavaScript解析XML数据,并结合DOM操作实现省市县三级联动的效果。在实际应用中,这种技术常用于动态生成下拉列表,提供用户友好的交互体验,特别是在需要根据上一级选择更新下...
JS 解析 XML 文件 作为一名 IT 行业大师,我将从给定的文件中生成相关知识点,涵盖 JS 解析 XML 文件的各种方面。 JS 解析 XML 文件的必要性 在当前的 web 开发中,XML 文件广泛应用于数据交换和存储。因此,如何...
"Xml+JS省市县三级联动(兼容IE FF)"就是一个这样的解决方案,它利用JavaScript(JS)语言处理XML文件,实现了在不同浏览器(如Internet Explorer和Firefox)中都可正常运行的联动效果。 XML(Extensible Markup ...
在JavaScript中解析XML文件是一项常见的任务,特别是在处理服务器返回的数据或者构建富客户端应用时。XML(eXtensible Markup Language)是一种结构化数据格式,它允许我们存储和传输信息,而JavaScript作为浏览器中...
以下将详细介绍如何使用JavaScript操作XML文件,并确保在Firefox和IE之间具有良好的兼容性。 1. 创建XMLHttpRequest对象 在JavaScript中,XMLHttpRequest对象是与服务器进行异步通信的主要工具。对于IE5和6,我们...
本项目名为"省市县三级联动(支持ie ff)",意味着它不仅适用于现代浏览器,如Firefox(FF),还兼容较为老旧的Internet Explorer(IE)浏览器。 首先,我们来了解一下三级联动的基本概念。在网页上,三级联动指的是...
在JavaScript中解析XML文件是一项常见的任务,特别是在网页开发中,我们可能需要将XML数据转换为HTML以便更好地展示或处理。JavaScript提供了DOMParser API和ActiveXObject(仅限于Internet Explorer)来解析XML。...
标题 "JS + XML 联动菜单 支持IE、FireFox" 描述了一种使用JavaScript(JS)和XML技术实现的跨浏览器联动菜单。这种菜单通常在网页中用于下拉选择,例如省市县的选择,其中一项的选择会动态更新下一级菜单的内容。...
在网页开发中,"兼容IE FF 省级三级联动"是一个常见的需求,涉及到前端界面交互和浏览器兼容性处理。这个需求通常出现在构建一个选择地址的下拉菜单时,用户首先选择省份,接着是城市,最后是区县,这三个级别形成一...
以下是对"JS插件 ---- pc端三级联动的demo"的详细知识点解析: 1. **基本概念**: - **联动**:在网页中,当用户在一个下拉菜单或选项中做出选择时,其他相关的下拉菜单或选项会自动更新,这种现象称为联动。 - *...
压缩包子文件的文件名"三级联动(firefox+IE测试通过).html"表明这可能是一个HTML文件,里面包含了实现三级联动效果的HTML结构以及内联JavaScript代码。打开这个文件,我们可以看到HTML元素如`<select>`标签用于创建...
在处理XML(可扩展标记语言)文件时,JavaScript提供了多种方法来读取、解析和修改XML数据,尽管不同浏览器(如Firefox和Internet Explorer)的实现可能存在差异。本文将详细探讨如何在JavaScript中操作XML文件,并...
6. **兼容性处理**:由于提到这个解决方案已在IE和Firefox上测试通过,这意味着它考虑了浏览器之间的差异,可能采用了jQuery的跨浏览器兼容性特性。 此示例代码可能包含一个HTML文件,用于展示界面;一个JavaScript...
### JS读取XML文件并获取文件内容 #### 知识点概述 在现代Web开发中,JavaScript(简称JS)常被用于处理各种数据格式,包括XML。XML(可扩展标记语言)是一种常用的标记语言,主要用于结构化数据的存储与传输。...
"Jquery实现省市区三级联动多选"是一个典型的前端技术应用,它解决了传统二级联动或三级联动一对一模式的问题,引入了多选功能,使得用户在选择省市区时可以有更大的自由度。 一、jQuery简介 jQuery是一个快速、...
这个压缩包文件提供的资源可能包括JavaScript代码、CSS样式表以及数据库数据,以实现动态加载和显示中国的省、市、区(县)信息。接下来,我们将详细讨论这个功能的实现原理、涉及的技术和关键知识点。 首先,三级...
在“javascript日历控件 兼容ie firefox opera”这个主题中,我们主要探讨的是一个能够同时在Internet Explorer(IE)、Firefox和Opera等主流浏览器上正常运行的JavaScript日历组件。 1. **日历控件的基本功能**: ...
在本文中,将介绍如何使用JavaScript解析XML文件来实现省市县三级联动功能。这一过程涉及对XML文件的解析、DOM(文档对象模型)的操作以及如何在前端页面上通过下拉列表(select)组件展示数据,并且实现当选择不同...
这个“jquery省市区三级联动插件”是为了解决一个常见的前端开发需求——实现省市区选择的联动效果。这种功能常见于用户注册、地址填写等场景,能够提供用户友好的交互体验。 首先,我们要理解什么是“三级联动”。...