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. 

 

 

文章標籤
全站熱搜
創作者介紹
創作者 Kenneth 的頭像
Kenneth

Kenneth的部落格

Kenneth 發表在 痞客邦 留言(0) 人氣(4)