Skip to content

Commit

Permalink
保持libs/function/test.js的代码风格
Browse files Browse the repository at this point in the history
  • Loading branch information
LynasTing committed Sep 18, 2024
1 parent e0422e6 commit 52ee200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/uni_modules/uview-plus/libs/function/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export function date(value) {
// 是否为string类型时间戳
const numV = Number(value);
if (!isNaN(numV)) {
if (numV.toString().length === 10 || numV.toString().length === 13) {
if (
numV.toString().length === 10 ||
numV.toString().length === 13
) {
return !isNaN(new Date(numV).getTime());
}
}
Expand Down

0 comments on commit 52ee200

Please sign in to comment.