刚刚接触module,感觉自己使用的很丑,有大神用的很漂亮的小项目,给我研究一下,让我看一下怎么写
看起来比较比较舒服
以下我写的:
google里面找“best practice requirejs”,有很多。
https://github.com/KengoTODA/requirejs-best-practice
http://www.sitepoint.com/understanding-requirejs-for-effective-javascript-module-loading/
别的自己找找