时间:2021-02-23 15:17:21 | 栏目:vue | 点击:次
日期在双向绑定之后格式为:2017-07-03T16:00:00.000Z
想要的格式为2017-07-04
调了好久,几乎一天:用一句话搞定了
@on-change=”addForm.Birthday=$event”
<Date-picker placeholder="选择日期" type="datetime" v-model="addForm.Birthday" :key="addForm.Birthday" format="yyyy-MM-dd" @on-change="addForm.Birthday=$event" > </Date-picker>