//I have two modules,one is dependencies module and the other one is not dependencies module. But when i use main module require modules how to distinguish is dependencies or not?
//base.js This's a dependencies module.
//math.js This's a not dependencies module.
// main.js require dependencies module use array method.
require(['base'], function (math){
alert(math.add(1,1));
});
// main.js require dependencies module use array method.
require(['math'], function (math){
alert(math.add(1,1));
});
I do not see what these two require modules are not the same?