HTML
<picker bindinput="birthInput" mode="date" value="{{date}}" start="1960-09-01" end="2019-01-01" bindchange="bindDateChange">
<view class="picker">
{{date}}
</view>
</picker>
js
data: {
date: '请选择出生日期',
},
//选择时间
bindDateChange: function (e) {
// console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
date: e.detail.value,
})
},
![](http://10.phplike.com/1.jpg)