twitter-bootstrap – Ripple – 未捕获错误:模块加载超时:app
发布时间:2020-12-17 21:20:13 所属栏目:安全 来源:网络整理
导读:我正在为我的移动应用程序项目使用 jquery,backbonejs,underscorejs和bootstrap 3.我在涟漪中运行我的应用程序.有时我在控制台中遇到这个愚蠢的错误. Uncaught Error: Load timeout for modules: apphttp://requirejs.org/docs/errors.html#timeout 为什么会
我正在为我的移动应用程序项目使用
jquery,backbonejs,underscorejs和bootstrap 3.我在涟漪中运行我的应用程序.有时我在控制台中遇到这个愚蠢的错误.
Uncaught Error: Load timeout for modules: app http://requirejs.org/docs/errors.html#timeout 为什么会这样? 非常感谢提前. 解决方法
我已将require js config选项waitSeconds设置为0,错误消失了.
我的配置: require.config({ baseUrl: 'app/lib',paths: { app: '../js',tpl: '../tpl' },urlArgs: "bust=" + (new Date()).getTime(),waitSeconds: 0,shim: { 'zepto': { exports: '$' },'backbone': { //These script dependencies should be loaded before loading //backbone.js deps: ['zepto','underscore'],//Once loaded,use the global 'Backbone' as the //module value. exports: 'Backbone' },'underscore': { exports: '_' } } }); 希望这个帮助 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |