下载此文档

js实现省市级联代码.doc


文档分类: | 页数:约15页 举报非法文档有奖
1/15
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/15 下载此文档
文档列表 文档介绍
js的写法:
//province(省份类)
function provinceList()
{
    =36;
    this[0] = new Option("不限","不限");
    this[1] = new Option("北京","北京");
    this[2] = new Option("重庆","重庆");
    this[3] = new Option("福建","福建");
    this[4] = new Option("甘肃","甘肃");
    this[5] = new Option("广东","广东");
    this[6] = new Option("广西","广西");
    this[7] = new Option("贵州","贵州");
    this[8] = new Option("海南","海南");
    this[9] = new Option("河北","河北");
    this[10] = new Option("河南","河南");
    this[11] = new Option("黑龙江","黑龙江");
    this[12] = new Option("湖北","湖北");
    this[13] = new Option("湖南","湖南");
    this[14] = new Option("江苏","江苏");
    this[15] = new Option("江西","江西");
    this[16] = new Option("吉林","吉林");
    this[17] = new Option("辽宁","辽宁");
    this[18] = new Option("内蒙古","内蒙古");
    this[19] = new Option("宁夏","宁夏");
    this[20] = new Option("青海","青海");
    this[21] = new Option("上海","上海");
    this[22] = new Option("山东","山东");
    this[23] = new Option("山西","山西");
    this[24] = new Option("陕西","陕西");
    this[25] = new Option("四川","四川");
    this[26] = new Option("天津","天津");
    this[27] = new Option("新疆","新疆");
    this[28] = new Option("西藏","西藏");
    this[29] = new Option("云南","云南");
    this[30] = new Option("浙江","浙江");
    this[31] = new Option("安徽","安徽");
    this[32] = new Option("香港","香港");
    this[33] = new Option("澳门","澳门");
    this[34] = new Option("台湾","台湾");
    this[35] = new Option("其它","其他");
    return this;
}
//city(城市类)
function citylist()
{
  =36;
 this[0] = new Array(1);
 this[0][0] = new Option("不限","不限");
    this[1] = new Array(1);
    this[1][0] = new Option("北京市","北京市");
    this[2] = new Array(4);
    this[2][0] = new Option("重庆市","重庆市");
    this[2][1] = new Option("涪陵市","涪陵市");
    this[2][2] = new Option("黔江市","黔江市");
    this[2][3] = new Option("万县市","万县市");
    this[3] = new Array(9);
    this[3][0] = new Option("福州市","福州市");
    this[3][1] = new Option("龙岩市",

js实现省市级联代码 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数15
  • 收藏数0 收藏
  • 顶次数0
  • 上传人mh900965
  • 文件大小112 KB
  • 时间2018-03-17