简体   繁体   中英

Load modules with require.js

define("file2",['file1'],function(){console.log('World')})

file2.js

var oli={name:boo.joni};

file1.js

var boo={joni:100};

I want to included the file "file2", before it needs to be loaded "file1". Once all scripts must call callbacks. It does not work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM