Bootstrap   发布时间:2022-04-18  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了twitter-bootstrap – Ripple – 未捕获错误:模块加载超时:app http://requirejs.org/docs/errors.html#timeout大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在为我的移动应用程序项目使用 jquery,BACkbonejs,under@L_607_1@js和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','under@L_607_1@'],//Once loaded,use the global 'BACkbone' as the
        //module value.
        exports: 'BACkbone'
    },'under@L_607_1@': {
        exports: '_'
    }
  }  

});

希望这个帮助

大佬总结

以上是大佬教程为你收集整理的twitter-bootstrap – Ripple – 未捕获错误:模块加载超时:app http://requirejs.org/docs/errors.html#timeout全部内容,希望文章能够帮你解决twitter-bootstrap – Ripple – 未捕获错误:模块加载超时:app http://requirejs.org/docs/errors.html#timeout所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。