newVal.length < 2)return; var province = newVal[0]; var city = newVal[1]; var region = this.data.region; //update province
var pro_index = region[0].indexOf(province); if (pro_index < 0)return;
region = [region[0], raw[province]]; //update city
var city_index = region[1].indexOf(city); if (city_index < 0) return; this.setData({
select: [pro_index,city_index],
region: region,
province: province,
city: city
})
},
bindChange: function (e) {
if (!e.detail.value
关键词:小程序如何进行地区选择器 完成、调用?