startup: function(){
        var t = this, o = t.core.opt;
        $.extend(t,Selection.defaults);
        t.filter = t.core.getDefaultFilters();        t.element = $('<div />').addClass(o.css_selection).data({ selection: t });
        t.frame = $('<button />').addClass(o.css_button).data('ord','move');
        t.element.append(t.frame).appendTo(t.core.container);        // IE background/draggable hack
        if (t.core.opt.is_msie) t.frame.css({
          opacity: 0,
          backgroundColor: 'white'
        });        t.insertElements();        // Bind focus and blur events for this selection
        t.frame.on('focus.jcrop',function(e){
          t.core.setSelection(t);
          t.element.trigger('cropfocus',t);
          t.element.addClass('jcrop-focus');
        }).on('blur.jcrop',function(e){
          t.element.removeClass('jcrop-focus');
          t.element.trigger('cropblur',t);
        });
      }

解决方案 »

  1.   

     startup: function(){
            var t = this, o = t.core.opt;  //创建变量t 等于调用此方法的对象 , o 取t 的core属性中opt属性
            $.extend(t,Selection.defaults); //  t 对象与 Selection.defaults属性,Selection.defaults 有值就合并,没值就默认jquery插件自带的
            t.filter = t.core.getDefaultFilters();  //这个就不解释了,具体看你场景
     
            t.element = $('<div />').addClass(o.css_selection).data({ selection: t }); // 同下
            t.frame = $('<button />').addClass(o.css_button).data('ord','move'); // $('<button />') 对象class增加 'ord','move'
            t.element.append(t.frame).appendTo(t.core.container);  //element拼接字符串
     
            // IE background/draggable hack  ie下面frame css变化
            if (t.core.opt.is_msie) t.frame.css({
              opacity: 0,
              backgroundColor: 'white'
            });
     
            t.insertElements();  //完事之后调用 方法创建元素
            //这段语法,真心没见过这样的
    <span style="color: #FF0000;">      // Bind focus and blur events for this selection
            t.frame.on('focus.jcrop',function(e){  // 焦点事件banding 方法
              t.core.setSelection(t);
              t.element.trigger('cropfocus',t);
              t.element.addClass('jcrop-focus');
            }).on('blur.jcrop',function(e){  //失焦 绑定方法
              t.element.removeClass('jcrop-focus');
              t.element.trigger('cropblur',t);
            });</span>    

    }