Require . Js wants to put the business in a separate file. Why not?

main.js

require.config({
    
    baseUrl:"/",//
    paths:{
     "jquery" :"jquery.min",
        
    },


})


<html>
<head>
 <script data-main="scripts/main" src="scripts/require.js"></script>
 <script src="scripts/other.js"></script>
</head>
<body>

</body>



</html>

other.js

require( ["jquery"], function( $ ) {
        console.log("ssssssss");
});
Mar.22,2021
Menu