摘要:
babel ES6 转换 ES5 实现原理 babel 各种包介绍 babel-core:核心包,提供转译的 API,用于对代码进行转译。例如 babel.transform。在 webpack 中 babel-loader 就是通过这个包实现。babylon:babel 的词法解析器。将原始代码逐 阅读全文
摘要:
实现: function fun(...args) { if (args[2]) { console.log("exec"); } return args[0]; } function memo(fn) { var temp = []; var flag = true; //return出去的这个函 阅读全文