The require() function of RequireJS and AMD API. The two methods have identical patterns but they differ in the way they are intended to be used.
The former is used to declare modules for later use, whereas the latter is used to load dependencies for immediate execution without needing to create reusable module from it.
文章標籤
全站熱搜
