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

(开头部分) 3KB

这里只显示每个文件的开头 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
 *
 */
/**
 * progressbar - jQuery EasyUI
 *
 * Dependencies:
 * 	 none
 *
 */
(function ($) {
    function init(target) {
        $(target).addClass('progressbar');
        $(target).html('<div class="progressbar-text"></div><div class="progressbar-value"><div class="progressbar-text"></div></div>');
        $(target).bind('_resize', function (e, force) {
            if ($(this).hasClass('easyui-fluid') || force) {
                setSize(target);
            }
            return false;
        });
        return $(target);
    }

    function setSize(target, width) {
        var opts = $.data(target, 'progressbar').options;
        var bar = $.data(target, 'progressbar').bar;
        if (width) opts.width = width;
        bar._size(opts);

        bar.find('div.progressbar-text').css('width', bar.width());
        bar.find('div.progressbar-text,div.progressbar-value').css({
            height: bar.height() + 'px',
            lineHeight: bar.height() + 'px'
        });
    }

    $.fn.progressbar = function (options, param) {
        if (typeof options == 'string') {
            var method = $.fn.progressbar.methods[options];
            if (method) {
                return method(this, param);
            }
        }

        options = options || {};
        return this.each(function () {
            var state = $.data(this, 'progressbar');
            if (state) {
                $.extend(state.options, options);
            } else {
                state = $.data(this, 'progressbar', {
                    options: $.extend({}, $.fn.progressbar.defaults, $.fn.progressbar.parseOptions(this), options),
                    bar: init(this)
                });
后面还有 47 行代码,购买后查看完整代码

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

AI 解读 AI

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

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