回调函数

    function capture1(callback) {
            var modelIndex = $('#tabModel').tabs('option', 'active');
            var childId = $('#tm' + (modelIndex + 1)).children().attr('id');
            var modeIndex = $('#' + childId).tabs('option', 'active');
            rangeMode = 1 + modeIndex;
            ctrlHc("rangeMode");
            if (callback && (callback instanceof Function)) {
                callback();
            }
        }

posted @ 2016-07-12 22:32  change_4_now  阅读(161)  评论(0编辑  收藏  举报