问题描述:picker组件BUG,fields属性为month时,苹果手机上下拉显示1年、2年、3年...;
解决方法:
<picker mode='date' value="{{date}}" fields='month' start="1970-01-01" end="2080-01-01" bindchange="bindDateChange">
<view>{{date}} <icon class="iconfont icon-xiala-"></icon></view>
</picker>
把start和end的时间格式改成YYYY-MM-DD,就行了,例如: start="1970-01-01" end="2080-01-01"
网友评论