2***@qq.com
2***@qq.com
  • 发布:2022-01-10 09:57
  • 更新:2022-01-10 09:57
  • 阅读:331

关于 picker.show(data) 为 undefined 的问题

分类:MUI

你好,我之前还可以使用这个功能
var cityPicker = new mui.PopPicker({ //通过new mui.PopPicker()初始化popPicker组件
layer: 3 //三级联动
});
cityPicker.setData(cityData4);

cityPicker.show(function(items) {
console.log(JSON.stringify(items))
console.log("我是items")
if(type == 1){
app.tripInfo.set_out = items[1].text + ' ' + items[2].text
}else{
app.tripInfo.destination = items[1].text + ' ' + items[2].text
}
})

但是现在console.log( cityPicker.setData(cityData4)) 为 undefined ,请问这个是什么问题造成的,文件引用路径没错,cityData4 也有数据。

2022-01-10 09:57 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复