【问题标题】:migration extjs code from 3.4 to 4.2将 extjs 代码从 3.4 迁移到 4.2
【发布时间】:2013-10-23 16:59:06
【问题描述】:

我的这段代码在 extjs 3.4 中可以正常工作

我想迁移此代码以便在 extjs 4.2 中工作

  Ext.apply(this.menu.picker,  {
            minDate : this.minValue,
            maxDate : this.maxValue,
            disabledDatesRE : this.disabledDatesRE,
            disabledDatesText : this.disabledDatesText,
            disabledDays : this.disabledDays,
            disabledDaysText : this.disabledDaysText,
            format : this.format,
            showToday : this.showToday,
            startDay: this.startDay,
            minText : String.format(this.minText, this.formatDate(this.minValue)),
            maxText : String.format(this.maxText, this.formatDate(this.maxValue)),
            field: this
        });

当我测试这段代码时,我发现这一行有错误:

  minText : String.format(this.minText, this.formatDate(this.minValue)),
                maxText : String.format(this.maxText, this.formatDate(this.maxValue)),

Uncaught TypeError: Object function String() { [native code] } has no method 'format'

【问题讨论】:

    标签: extjs4.2


    【解决方案1】:

    弗朗哥,你试过了吗

        Ext.String.format(params)
    

    而不是 String.format() ?

    最好的 拉金德

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-07
      • 1970-01-01
      • 1970-01-01
      • 2013-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多