WebHost/Scripts/EasyUI/ext.common.js
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function jsonDateFormat(jsonDate, formater) {//json日期格式转换为正常格式
if (jsonDate == undefined) {
return "";
}
try {
var date = new Date(parseInt(jsonDate.replace("/Date(", "").replace(")/", ""), 10));//new Date(parseInt(Dtime.slice(6, 19)));
if (formater == undefined) {
return date.format("yyyy-MM-dd");
}
else {
return date.format(formater);
}
} catch (ex) {
return "";
}
}
/*json 日期格式转换 带时间格式*/
function timeStamp2String(jsondate) {
jsondate = jsondate.replace("/Date(", "").replace(")/", "");
if (jsondate.indexOf("+") > 0) {
jsondate = jsondate.substring(0, jsondate.indexOf("+"));
}
else if (jsondate.indexOf("-") > 0) {
jsondate = jsondate.substring(0, jsondate.indexOf("-"));
}
var date = new Date(parseInt(jsondate, 10));
var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
return date.getFullYear()
+ "-"
+ month
+ "-"
+ currentDate
+ ""
+ " "
+ date.getHours()
+ ":"
+ date.getMinutes();
}
var formatGMTDate = function (date, isappendtime) {
var y = date.getFullYear();
var m = date.getMonth() + 1;
m = m < 10 ? ('0' + m) : m;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
if (isappendtime != undefined) {
var h = date.getHours();
var minute = date.getMinutes();
minute = minute < 10 ? ('0' + minute) : minute;
return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
}
else {
return y + '-' + m + '-' + d;
}
};
后面还有 259 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
