摘要: es6 定义了新的模块标准化,提供了modules 没有采用nodejs的CommonJS, 没有实现require, require和module.exports只是node的私有全局方法和对象属性 建议写法: export {fun as default,a,b,c}; nodejs 模块的规范 阅读全文
posted @ 2017-03-14 00:31 东京下雨,淋湿巴黎 阅读(386) 评论(0) 推荐(0) 编辑