requireJs 踩的坑
<!-- RequireJS --> <script src="assets/js/require.min.js" data-main="assets/js/require.config"></script> <script src="assets/js/page/index.js"></script>
通过network 可以看出 浏览器的加载顺序是:
DOM => require.js => other.js => data-main="js/config"
config.js 一般会在other.js的后面加载..导致other.js 获取不到config的配置信息.加载不到相应模块.