摘要: 1.安装了 node 2.安装了 create-react-app 3.执行代码 create-react-app 报错 create-react-app 不是内部命令 解决方法:1.更新你的npm版本 npm install -g npm@latest 2.npx create-react-app 阅读全文
posted @ 2019-08-07 15:11 Tutao1995 阅读(197) 评论(0) 推荐(0) 编辑
摘要: let arr = [1,2,4,5,6];let newArr = [];//es6 新增数组方法//forEach(); 遍历数组每一项,让每一项做某件事(执行callback函数);不能使用return//forEach 参数: callback this对象(执行 callback 函数时使 阅读全文
posted @ 2019-08-07 13:36 Tutao1995 阅读(135) 评论(0) 推荐(0) 编辑