Sometimes, you can export ' AAA '
But sometimes, will//uncaught referenceerror:require is not defined
Picture description
require.config({ baseUrl: '
config->base_url(); ?>', paths: { jquery: 'assets/js/jquery.min', bootstrap: 'assets/js/bootstrap.min', fastclick: 'assets/js/fastclick', swal: 'assets/js/sweet-alert', bootstrapSelect: 'assets/js/bootstrap-select.min', ueditorConfig: 'assets/js/ueditor/ueditor.config', ueditor: 'assets/js/ueditor/ueditor.all.min', domReady: 'assets/js/domReady' }, shim: { bootstrap: { deps: ['jquery'], exports: 'bootstrap' } }, urlArgs: 'v=' + (new Date()).getTime() }); require(['domReady'],function(domReady){ domReady(function(){ console.log('aaa'); }); }); // Uncaught ReferenceError: require is not defined
Reply content:
Sometimes, you can export ' AAA '
But sometimes, will//uncaught referenceerror:require is not defined
Picture description
require.config({ baseUrl: '
config->base_url(); ?>', paths: { jquery: 'assets/js/jquery.min', bootstrap: 'assets/js/bootstrap.min', fastclick: 'assets/js/fastclick', swal: 'assets/js/sweet-alert', bootstrapSelect: 'assets/js/bootstrap-select.min', ueditorConfig: 'assets/js/ueditor/ueditor.config', ueditor: 'assets/js/ueditor/ueditor.all.min', domReady: 'assets/js/domReady' }, shim: { bootstrap: { deps: ['jquery'], exports: 'bootstrap' } }, urlArgs: 'v=' + (new Date()).getTime() }); require(['domReady'],function(domReady){ domReady(function(){ console.log('aaa'); }); }); // Uncaught ReferenceError: require is not defined
In fact, everyone in the production environment in the time is not quoted Requirejs, on-line are packaged good.
Introducing Requirejs to remove Asyn and defer properties