AMD: what is the purpose in javascript context?
问题 Regarding AMD (Asynchronous Module Definition ) I read the phase like this: The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order" and something that was easy to use directly in the browser. What is the the purpose in javascript context? Can you make some example? pro et contro of using AMD? 回答1: Long before JavaScript gained a native module system, the only way to put scripts