日期:2014-05-16  浏览次数:20319 次

javascript 两级联动、三级联动、多级联动(二)
//公司二维数组数据源
            Office = [
            ["CategoryName","ParentCategoryName"],
            ["业务部","0"],
            ["技术部","0"],
            ["市场部","0"],
            ["业务部小柳","业务部"],
            ["业务部小杨","业务部"],
            ["业务部小菜","业务部"],
            ["技术部老柳","技术部"],
            ["技术部老杨","技术部"],
            ["技术部老菜","技术部"],
            ["市场部柳先生","市场部"],
            ["市场部杨先生","市场部"],
            ["市场部菜鸟","市场部"]
            ]
            //省市二维数组数据源
            City2 = [
            ["CategoryName","ParentCategoryName"],
            ["山西省","0"],
            ["河北省","0"],
            ["太原市","山西省"],
            ["运城市","山西省"],
            ["石家庄","河北省"],
            ["廊房","河北省"]
            ]
            //省市三维数组数据源
            City3 = [
            ["CategoryName","ParentId","Id"],
            ["北京","0","010"],
            ["山西","0","0359"],
            ["朝阳区","010","001"],
            ["海淀区","010","002"],
            ["豆各庄","001","101"],
            ["十里堡","001","102"],
            ["中关村","002","201"],
            ["上地","002","202"],
            ["运城地区","0359","301"],
            ["太原市","0359","302"],
            ["永济市","301","311"],
            ["小区","302","312"]
            ];
            
             //省市四维数组数据源(根据三位数组源编写)
            myCity = [
            ["CategoryName","ParentId","Id"],
            ["北京","0","010"],
            ["山西","0","0359"],
            ["朝阳区","010","001"],
            ["海淀区","010","002"],
            ["豆各庄","001","101"],
            ["十里堡","001","102"],
            ["中关村","002","201"],
            ["上地","002","202"],
            ["运城地区","0359","301"],
            ["太原市","0359","302"],
            ["永济市","301","311"],
            ["小区","302","312"],
            
            //增加的部分
            ["陕西","0","029"],
            ["咸阳市","029","0291"],
            ["西安市","029","0292"],
            ["新城区","0292","02921"],
            ["碑林区","0292","02922"],
            ["伞塔路","02922","029221"],
            ["金花南路","02922","029222"]
            ];
            
            </script>