$(document).ready(function () {//jquery页面加成完成后的回调方法
    var b = true;
    var a = function () {//定义a类构造函数
        var d = this;
        d.bindEvents();
        d.initBeforeLoad()
    };
    a.prototype = {//设置a类的原型
        bindEvents: function () {
            var d = this;
            $(window).on('load', function (e) {
                d.initAfterLoad()
            });
            TabWidget.build($('.tab-menu'))
        },
        initBeforeLoad: function () {
            var e = this,
            d = $('#panel-system-set'),
            f = $('#menu-side');
            TraceWidget.build(null, 'newTab');
            TabWidget.autoSwitch($('.main-news .tab-menu'))
        },
        initAfterLoad: function () {
            var d = this;
            TraceWidget.loadChannel()
        }
    };
    var c = new a()//new一个a出来并赋值给c
});