WebUI/lib/ligerUI/js/plugins/ligerDateEditor.js
(开头部分) 37KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jQuery ligerUI 1.2.0
*
* http://ligerui.com
*
* Author daomi 2013 [ gd_star@163.com ]
*
*/
(function ($)
{
$.fn.ligerDateEditor = function ()
{
return $.ligerui.run.call(this, "ligerDateEditor", arguments);
};
$.fn.ligerGetDateEditorManager = function ()
{
return $.ligerui.run.call(this, "ligerGetDateEditorManager", arguments);
};
$.ligerDefaults.DateEditor = {
format: "yyyy-MM-dd hh:mm",
showTime: false,
onChangeDate: false,
absolute: true, //选择框是否在附加到body,并绝对定位
cancelable: true, //可取消选择
readonly: false //是否只读
};
$.ligerDefaults.DateEditorString = {
dayMessage: ["日", "一", "二", "三", "四", "五", "六"],
monthMessage: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
todayMessage: "今天",
closeMessage: "关闭"
};
$.ligerMethos.DateEditor = {};
$.ligerui.controls.DateEditor = function (element, options)
{
$.ligerui.controls.DateEditor.base.constructor.call(this, element, options);
};
$.ligerui.controls.DateEditor.ligerExtend($.ligerui.controls.Input, {
__getType: function ()
{
return 'DateEditor';
},
__idPrev: function ()
{
return 'DateEditor';
},
_extendMethods: function ()
{
return $.ligerMethos.DateEditor;
},
_render: function ()
{
var g = this, p = this.options;
if (!p.showTime && p.format.indexOf(" hh:mm") > -1)
p.format = p.format.replace(" hh:mm", "");
if (this.element.tagName.toLowerCase() != "input" || this.element.type != "text")
return;
后面还有 846 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
