日期控件的用法

 	<picker mode="date" fields="month" value="{{date}}" start="2019-05" end="2100-12" bindchange="getDateTime">
       <view class="selectDate">
         {{date}}
         <image src='/icons/down.png' style='width:30rpx;height:18rpx;margin-left:3%;'></image>
       </view>
     </picker>
  1. picker显示年 fields="year"
  2. picker显示年月 fields="month"
  3. picker显示年月日 day

对应的组件 微信公众平台 点击这里--------微信公众平台

猜你喜欢

转载自blog.csdn.net/weixin_42301962/article/details/89714333