1.字符串時間格式的互轉
SubmitData(data: any) {
// let AccountDate = new Date(data.AccountDate);
let AccountDate = new Date('2019/11/26');
console.log('當前AccountDate數據:', AccountDate);
console.log('當前AccountDate數據:', AccountDate.toLocaleDateString());
data.AccountDate = AccountDate.toLocaleDateString();
console.log('當前表單提交數據:', data);
}