var citys = ["云南","四川","贵州"]
var dict = [
"云南":["昆明","昭通","大理","楚雄"],
"四川":["成都","资中","宜宾","资阳"],
"贵州":["贵阳","六盘水","水城"]]
请问老师,我现在想根据citys中的内容来取得dict中对应的数组,应该怎样操作呢?
var citys = ["云南","四川","贵州"]
var dict = [
"云南":["昆明","昭通","大理","楚雄"],
"四川":["成都","资中","宜宾","资阳"],
"贵州":["贵阳","六盘水","水城"]]
请问老师,我现在想根据citys中的内容来取得dict中对应的数组,应该怎样操作呢?
2014-10-11
举报