使用 TYPO3 作为 CMS,我尝试使用 requirejs 加载引导表本地化,但收到此错误: Uncaught TypeError: Cannot read property 'locales' of undefined
。
首先,如果我只加载bootstrap-table.min.js一切正常:
define([
'jquery',
'TYPO3/CMS/Iancalendar/bootstrap-table.min'
], function($, bootstrapTable) {
但是当我添加本地化文件时出现该错误:
define([
'jquery',
'TYPO3/CMS/Iancalendar/bootstrap-table.min',
'TYPO3/CMS/Iancalendar/bootstrap-table-locale-all.min'
], function($, bootstrapTable, btl) {
该错误在bootstrap-table-locale-all.min.js的这一行触发:
t.fn.bootstrapTable.locales["af-ZA"]
所以我想这是因为 t.fn.bootstrapTable 尚未在那里定义。
请问,有什么想法可以帮助我解决这个问题吗?
犯罪嫌疑人X
相关分类