HRSys_Prj/scripts/Calendar_Aries.js
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!--WebCalendar.js
/**
* Return Date
* @param d the delimiter
* @param p the pattern of your date
*/
String.prototype.ToDate = function(x, p) {
if(x == null) x = "-";
if(p == null) p = "ymd";
var a = this.split(x);
var y = parseInt(a[p.indexOf("y")]);
//remember to change this next century ;
if(y.toString().length <= 2) y += 2000;
if(isNaN(y)) y = new Date().getFullYear();
var m = parseInt(a[p.indexOf("m")]) - 1;
var d = parseInt(a[p.indexOf("d")]);
if(isNaN(d)) d = 1;
return new Date(y, m, d);
}
/**
* Format Date
* @param d the delimiter
* @param p the pattern of your date
*/
Date.prototype.Format = function(style) {
var o = {
"M+" : this.getMonth() + 1, //month
"d+" : this.getDate(), //day
"h+" : this.getHours(), //hour
"m+" : this.getMinutes(), //minute
"s+" : this.getSeconds(), //second
"w+" : "天一二三四五六".charAt(this.getDay()), //week
"q+" : Math.floor((this.getMonth() + 3) / 3), //quarter
"S" : this.getMilliseconds() //millisecond
}
if(/(y+)/.test(style)) { style = style.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); }
for(var k in o)
{
if( new RegExp("("+ k +")").test(style) ){ style = style.replace(RegExp.$1, (RegExp.$1.length==1) ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); }
}
return style;
};
/**
* Class Calendar
* @param lang 0(Chinese)|1(English)
* @param dateFormatStyle "yyyy-MM-dd";
* @update
*/
// alert("222:");
function calendar(e)
{
new Calendar().Show(e);
}
function Calendar(beginYear, eCalendarndYear, lang, dateFormatStyle)
{
后面还有 419 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。