日期组件不显示日期
发布于 6 年前 作者 juanzou 7248 次浏览 来自 问答

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

<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 回复

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

回到顶部