我定义了此处定义的 jquery 无冲突方法Using private jquery with RequireJS - issue after optimization
但之后我用这些额外的配置加载我的页面。
config.paths.jqueryLayout = ["scripts/jquery.layout-1.3.0"];
config.shim.jqueryLayout = {deps: ['jquery']};
config.paths.jqueryUi = ["scripts/jquery-ui-1.10.min"];
config.shim.jqueryUi = {deps: ['jquery']};
现在在将无冲突添加到 true 之后..我得到了所有这些错误,如下所示,不知道为什么?请问有人可以帮忙吗?
Uncaught TypeError: Cannot read property 'ui' of undefined jquery-ui-1.10.min.js:5
Uncaught TypeError: Cannot read property 'fn' of undefined
Uncaught TypeError: Cannot read property 'fn' of undefined jquery.event.drag-2.0.min.js:6
Uncaught TypeError: undefined is not a function bootstrap.min.js:6
Uncaught TypeError: Cannot call method 'extend' of undefined slick.pager.js:146
Uncaught TypeError: Cannot call method 'extend' of undefined slick.core.js:9
Uncaught TypeError: undefined is not a function highcharts.js:30
Uncaught TypeError: Cannot call method 'extend' of undefined slick.cellselectionmodel.js:3
Uncaught TypeError: Cannot read property 'CellSelectionModel' of undefined
谢谢