摘要:
1.map实现 Array.prototype.myMap = function map(fn, context) { if (typeof fn !== "function") { throw new Error("you should give a function"); } let arr = 阅读全文
摘要:
1、安装 yo 和 generator-code yarn global add yo generator-code 2、执行 yo code 生成插件脚手架 yo code 配置项说明:选择插件类型* ? What type of extension do you want to create? 阅读全文