【发布时间】: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 文件包含任何刚刚在设计中使用的东西