【BUG反馈】
< view > < picker value = "{{index}}" range = "{{array}}" range-key = '{{key}}' > < view class = "picker" > 当前选择:{{array[index].key}} </ view > </ picker >
|
Page({ data: { array: [{ "hospitalName": "北京中医药大学附属护国寺中医医院", "hospitalId": 520, "areaId": 166 }, { "hospitalName": "深圳市南山医院", "hospitalId": 657, "areaId": 23 }, { "hospitalName": "上海市嘉定区南翔医院", "hospitalId": 416, "areaId": 167 }, { "hospitalName": "浙江大学附属第一医院", "hospitalId": 482, "areaId": 25 }], index:0, key: "hospitalName" } }) |
结果是根本显示不出来,测试发现key值根本没有传到{{array[index].key}},但是Index的值却传入了,请问这是怎么回事?