WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/src/jquery.datebox.js

(开头部分) 10KB

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

/**
 * jQuery EasyUI 1.4.4
 *
 * Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
 *
 * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
 * To use it on other terms please contact us: info@jeasyui.com
 *
 */
/**
 * datebox - jQuery EasyUI
 *
 * Dependencies:
 * 	 calendar
 *   combo
 *
 */
(function ($) {
    /**
	 * create date box
	 */
    function createBox(target) {
        var state = $.data(target, 'datebox');
        var opts = state.options;

        $(target).addClass('datebox-f').combo($.extend({}, opts, {
            onShowPanel: function () {
                bindEvents(this);
                setButtons(this);
                setCalendar(this);
                setValue(this, $(this).datebox('getText'), true);
                opts.onShowPanel.call(this);
            }
        }));

        /**
		 * if the calendar isn't created, create it.
		 */
        if (!state.calendar) {
            var panel = $(target).combo('panel').css('overflow', 'hidden');
            panel.panel('options').onBeforeDestroy = function () {
                var c = $(this).find('.calendar-shared');
                if (c.length) {
                    c.insertBefore(c[0].pholder);
                }
            };
            var cc = $('<div class="datebox-calendar-inner"></div>').prependTo(panel);
            if (opts.sharedCalendar) {
                var c = $(opts.sharedCalendar);
                if (!c[0].pholder) {
                    c[0].pholder = $('<div class="calendar-pholder" style="display:none"></div>').insertAfter(c);
                }
                c.addClass('calendar-shared').appendTo(cc);
                if (!c.hasClass('calendar')) {
                    c.calendar();
                }
                state.calendar = c;
            } else {
                state.calendar = $('<div></div>').appendTo(cc).calendar();
            }
后面还有 225 行代码,购买后查看完整代码

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

AI 解读 AI

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

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