picker mode=region,急问。
我在编辑器上写的关于picker mode='region‘的代码,发现,编辑器上运行正常,到真机中报错!
手机型号是vivo 华为的也有。苹果机初次可以实现,刷新后再次打开就不能拉取数据了。
< picker mode = "region" bindchange = "bindRegionChange" value = "{{region}}" custom-item = "{{customItem}}" style = "width:480rpx;" > < view class = "picker " > < text class = "c999" wx:if = "{{!region[0]}}" >请选择
|
bindRegionChange: function (e) { console.log( 'picker发送选择改变,携带值为' , e.detail.value) let address = e.detail.value; if (address[0]) { let addressString = `${address[0]} ${address[1]} ${address[2]}` this .setData({ addressString }) } this .setData({ region: e.detail.value }) }, |
如下图错误。请大神们帮忙解答。谢谢,🙏!