picker组件如何根据后台默认选中呢?

发布于 8 年前作者 gang8214901 次浏览最后编辑 8 年前来自 issues

picker组件如何根据后台默认选中呢?

4 回复
xiaoxia
xiaoxia1 楼6 年前
liangmin
liangmin2 楼6 年前

https://developers.weixin.qq.com/miniprogram/dev/component/picker.html

文档要看

若认为该回答有用,给回答者点个[ 有用 ],让答案帮助更多的人

xiuyingsu
xiuyingsu3 楼5 年前

遍历返回的数据,根据index选中

wangyong
wangyong4 楼5 年前

<text style=“padding: 10rpx 20rpx;”>{{choseshiList[rangekeyshi].city || defaultcity}}</text>