Fork me on GitHub
摘要: 在JS模块化编程中,之前使用的是require.js或者sea.js。随着前端工程化工具webpack的推出,使得前端js可以使用CommonJS模块标准或者使用ES6 moduel特性。 在CommonJs模块标准中我们载入模块使用的是require(),输出模块用的是exports或者modul 阅读全文
posted @ 2018-12-23 11:32 Jesse131 阅读(907) 评论(0) 推荐(0) 编辑