级联菜单

Posted double2014

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了级联菜单相关的知识,希望对你有一定的参考价值。

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4     <meta charset="utf-8"/>
 5     <title>动态操作下拉选项</title>
 6     <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" media="all"/>
 7     <link rel="stylesheet" type="text/css" href="../css/bootstrap-theme.min.css" media="all"/>
 8     <link rel="stylesheet" type="text/css" href="../css/reset.css" media="all"/>
 9     <style type="text/css">
10         .demo1{ width:350px; text-align:left;}
11         .demo1 span{ margin-right:15px;}
12     </style>
13 </head>
14 <body>
15 <div class="demo1">
16     <span id="province"></span>
17     <span id="city"></span>
18     <span id="district"></span>
19 </div>
20 <script>
21     (function(){
22         var items = [];
23         function add(id, arr){
24             items[id] = arr;
25         }
26         add(0,["1:北京市","2:天津市","3:河北省","4:山西省","5:内蒙古","6:辽宁省","7:吉林省","8:黑龙江省","9:上海市","10:江苏省","11:浙江省","12:安徽省","13:福建省","14:江西省","15:山东省","16:河南省","17:湖北省","18:湖南省","19:广东省","20:广西自治区","21:海南省","22:重庆市","23:四川省","24:贵州省","25:云南省","26:西藏自治区","27:陕西省","28:甘肃省","29:青海省","30:宁夏回族自治区","31:新疆维吾尔自治区","32:香港特别行政区","33:澳门特别行政区","34:台湾省","35:其它"]);
27         add(1,["1:北京","2:东城区","3:西城区","4:崇文区","5:宣武区","6:朝阳区","7:丰台区","8:石景山区","9: 海淀区(中关村)","10:门头沟区","11:房山区","12:通州区","13:顺义区","14:昌平区","15:大兴区","16:怀柔区","17:平谷区","18:密云县","19:延庆县","20: 其他"]);
28         add(2,["1:和平区","2:河东区","3:河西区","4:南开区","5:红桥区","6:塘沽区","7:汉沽区","8:大港区","9:西青区","10:津南区","11:武清区","12:蓟县","13:宁河县","14:静海县","15:其他"]);
29         add(3,["1:石家庄市","2:张家口市","3:承德市","4:秦皇岛市","5:唐山市","6:廊坊市","7:衡水市","8:沧州市","9:邢台市","10:邯郸市","11:保定市","12:其他"]);
30         add(4,["1:太原市","2:朔州市","3:大同市","4:长治市","5:晋城市","6:忻州市","7:晋中市","8:临汾市","9:吕梁市","10:运城市","11:其他"]);
31         add(5,["1:呼和浩特市","2:包头市","3:赤峰市","4:呼伦贝尔市","5:鄂尔多斯市","6:乌兰察布市","7:巴彦淖尔市","8:兴安盟","9:阿拉善盟","10:锡林郭勒盟","11:其他"]);
32         add(6,["1:沈阳市","2:朝阳市","3:阜新市","4:铁岭市","5:抚顺市","6:丹东市","7:本溪市","8:辽阳市","9:鞍山市","10:大连市","11:营口市","12:盘锦市","13:锦州市","14:葫芦岛市","15:其他"]);
33         add(7,["1:长春市","2:白城市","3:吉林市","4:四平市","5:辽源市","6:通化市","7:白山市","8:延边朝鲜族自治州","9:其他"]);
34         add(8,["1:哈尔滨市","2:七台河市","3:黑河市","4:大庆市","5:齐齐哈尔市","6:伊春市","7:佳木斯市","8:双鸭山市","9:鸡西市","10:大兴安岭地区(加格达奇)","11:牡丹江","12:鹤岗市","13:绥化市 ","14:其他"]);
35         add(9,["1:黄浦区","js实现级联菜单(没有后台)

Python/Tkinter:级联菜单锚定在右侧而不是左侧

ASP.NET MVC 级联下拉菜单

SQL级联查询 商品类型级联菜单查询

yii实现级联下拉菜单的方法

[伪] 级联菜单,两级菜单