SimpleTaskSystem.Web/Content/jquery-easyui-1.3.1/plugins/jquery.datebox.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * jQuery EasyUI 1.3.1
 * 
 * Licensed under the GPL terms
 * To use it on other terms please contact us
 *
 * Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ] 
 * 
 */
(function($){
function _1(_2){
var _3=$.data(_2,"datebox");
var _4=_3.options;
$(_2).addClass("datebox-f");
$(_2).combo($.extend({},_4,{onShowPanel:function(){
_3.calendar.calendar("resize");
_4.onShowPanel.call(_2);
}}));
$(_2).combo("textbox").parent().addClass("datebox");
if(!_3.calendar){
_5();
}
function _5(){
var _6=$(_2).combo("panel");
_3.calendar=$("<div></div>").appendTo(_6).wrap("<div class=\"datebox-calendar-inner\"></div>");
_3.calendar.calendar({fit:true,border:false,onSelect:function(_7){
var _8=_4.formatter(_7);
_c(_2,_8);
$(_2).combo("hidePanel");
_4.onSelect.call(_2,_7);
}});
_c(_2,_4.value);
var _9=$("<div class=\"datebox-button\"></div>").appendTo(_6);
$("<a href=\"javascript:void(0)\" class=\"datebox-current\"></a>").html(_4.currentText).appendTo(_9);
$("<a href=\"javascript:void(0)\" class=\"datebox-close\"></a>").html(_4.closeText).appendTo(_9);
_9.find(".datebox-current,.datebox-close").hover(function(){
$(this).addClass("datebox-button-hover");
},function(){
$(this).removeClass("datebox-button-hover");
});
_9.find(".datebox-current").click(function(){
_3.calendar.calendar({year:new Date().getFullYear(),month:new Date().getMonth()+1,current:new Date()});
});
_9.find(".datebox-close").click(function(){
$(_2).combo("hidePanel");
});
};
};
function _a(_b,q){
_c(_b,q);
};
function _d(_e){
var _f=$.data(_e,"datebox").options;
var c=$.data(_e,"datebox").calendar;
var _10=_f.formatter(c.calendar("options").current);
_c(_e,_10);
$(_e).combo("hidePanel");
};
function _c(_11,_12){
var _13=$.data(_11,"datebox");
后面还有 59 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。