1.requireJs页面加载问题
问题描述:在config.js中定义baseurl,依次引入所依赖的js文件,会报没有找到所依赖的js文件
解决方案:
<script type="text/javascript" src="./../assets/js/dist/require.js"></script>
<script>
requirejs.config({
baseUrl: './../assets/js'
});
</script>
<script src="./../assets/js/config.js"></script>
<script>
require(['./../assets/js/demo.js'])
</script>