Browse Source

个人信息维护 部分时间显示 Invalid Date

临城职教中职
ndbs 2 years ago
parent
commit
a8b363613d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml

+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml View File

@@ -497,7 +497,11 @@
},
date: function (value) {
var date = new Date(value);
return date.toLocaleDateString();
if (date instanceof Date && !isNaN(date.getTime())) {
return date.toLocaleDateString();
} else {
return '';
}
},
company: function (value) {
var result;


Loading…
Cancel
Save