php数组做的二级菜单,javascript,_这样的数组用javascript怎么做二级菜单?,javascript – phpStudy…

  • Post author:
  • Post category:java


这样的数组用javascript怎么做二级菜单?

下面的数组,用javascript怎么写二级菜单?

province_class = function () {

var p = {

[[“110000”, “北京”], [“310000”, “上海”]]

}

};

city_class = function () {

var c = [[“110101”, “东城”, “110000”], [“110102”, “西城”, “110000”], [“110105”, “朝阳”, “110000”], [“110106”, “丰台”, “110000”], [“110107”, “石景山”, “110000”], [“110108”, “海淀”, “110000”], [“110109”, “门头沟”, “110000”], [“110111”, “房山”, “110000”], [“110112”, “通州”, “110000”], [“110113”, “顺义”, “110000”], [“110114”, “昌平”, “110000”], [“110115”, “大兴”, “110000”], [“110116”, “怀柔”, “110000”], [“110117”, “平谷”, “110000”], [“110228”, “密云”, “110000”], [“110229”, “延庆”, “110000”],

[“310101”, “黄浦”, “310000”], [“310104”, “徐汇”, “310000”], [“310105”, “长宁”, “310000”], [“310106”, “静安”, “310000”], [“310107”, “普陀”, “310000”], [“310108”, “闸北”, “310000”], [“310109”, “虹口”, “310000”], [“310110”, “杨浦”, “310000”], [“310112”, “闵行”, “310000”], [“310113”, “宝山”, “310000”], [“310114”, “嘉定”, “310000”], [“310115”, “浦东”, “310000”], [“310116”, “金山”, “310000”], [“310117”, “松江”, “310000”], [“310118”, “青浦”, “310000”], [“310120”, “奉贤”, “310000”], [“310230”, “崇明”, “310000”]

]

};

相关阅读:

android 如何实现自定义Camera手动对焦?

tableview获取数据后背景自动变回默认

有没有能快速部署flask+uwsgi+nginx的方法?

express的能做的有哪些?路由、连接数据库返回给浏览器?还有什么?

JavaScript isNaN 方法的问题

django用通用视图以后如何生成静态页面?

数据关联 through,到底用什么用?

UIButton自定义属性

java的char类型,只有两个字节,在采用utf-8编码时,为什么可以存储汉字?

copy(InputStream in, Path target, CopyOption… options) 使用

vim的 \n 和 \r 什么区别

PHP为什么我用数据库存JSON字符串,取出后不能解JSON

SASS嵌套的时候怎样单独给一个标签加独有属性?

spring中@Service和@Controller的区别是什么

Linux下C语言直接调用API反而比system调用二进制程序慢?

一个表单有多个buton,方法都写在一个类里面,公用相同的模板怎么给不同的按钮加上不同的action?

react 的 Webkit 无效

MarkDownPad2 代码内如何换行?

Scala 寻找 implicit 的顺序?

如何让symofny的 controller 里面的代码更干净