Difference Between data-main and normal script loading

后端 未结 4 1398
后悔当初
后悔当初 2020-12-31 00:52

When using RequireJS, what\'s the difference between including your script with



        
4条回答
  •  感情败类
    2020-12-31 01:08

    
    

    src will load "scripts/vendor/requirejs/require.js" first. Then data-main attribute will execute "scripts/main.js".

提交回复
热议问题