标签:value pat data app end mda mat append form
可能原因:
1.前端(IE下不支持new Date())
解决:引用时间插件moment.js
this.user.establishedTime = moment(this.user.establishedTime).format("l");
if (this.user.establishedTime) {
this.formData.append("establishedTime",new Date(this.user.establishedTime));
}
2.后台(所传日期不符合格式)
解决:引用组件格式化日期@DateTimeFormat(pattern="yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date beginDate;
Date参数接收报错rejected value [yyyy-mm-dd]
标签:value pat data app end mda mat append form
原文地址:https://www.cnblogs.com/yyjspace/p/11840825.html