【问题标题】:Error In jqxcalender : Globalize is not definedjqxcalender 中的错误:未定义全球化
【发布时间】:2019-07-24 07:34:48
【问题描述】:

我在我的角度组件中使用 jqxcalender,当加载标签时我收到此错误 Globalize is not defined in the console 如何解决此错误

我已经尝试在代码中导入 jqxcalender

<jqxCalendar [width]="'100%'" [height]="390" [titleHeight]="50" [columnHeaderHeight]="80" [enableHover]="false [dayNameFormat]="'firstLetter'" [firstDayOfWeek]="1" [showOtherMonthDays]="false"  #myCalendar ></jqxCalendar>




DetailComponent.html:20 ERROR ReferenceError: Globalize is not defined
    at c.<computed>._format (jqxcalendar.js:8)
    at c.<computed>.renderTitle (jqxcalendar.js:8)
    at c.<computed>._renderSingleCalendar (jqxcalendar.js:8)
    at c.<computed>.render (jqxcalendar.js:8)
    at c.<computed>.refresh (jqxcalendar.js:8)
    at Object.push../node_modules/jqwidgets-scripts/jqwidgets/jqxcore.js.b.jqx.applyWidget (jqxcore.js:15)
    at HTMLDivElement.<anonymous> (jqxcore.js:15)
    at Function.each (jqxcore.js:8)
    at init.each (jqxcore.js:8)
    at init.b.fn.<computed> [as jqxCalendar] (jqxcore.js:15)

【问题讨论】:

  • 请分享你的组件ts代码
  • ts 文件包含任何刚刚在设计中使用的东西

标签: angular jqwidget


【解决方案1】:

只需将jqxwidget更新到当前版本即可解决

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-25
    • 2013-04-19
    • 1970-01-01
    • 2021-11-28
    相关资源
    最近更新 更多