日期组件不显示日期

发布于 7 年前作者 juanzou7409 次浏览最后编辑 7 年前来自 ask

选择或者默认值设置上也不显示日期,是空白的

<picker mode=“date” value=“{{account.ubirth}}” start=“1900-01-01” end=“2019-09-01” bindchange=“bindDateChange”>

    <view class=“weui-input”>{{account.ubirth}}</view>

</picker>

bindDateChange: function (e) {

    var account = this.data.account;

    account.ubirth = e.detail.value;

    this.setData({

    account: account

    });

}

1 回复
fang38
fang381 楼5 年前

麻烦提供出现问题的机型和微信版本,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html