2019年4月1日
摘要: npx 是什么? npm v5.2.0引入的一条命令(npx),引入这个命令的目的是为了提升开发者使用包内提供的命令行工具的体验。 举例:使用create-react-app创建一个react项目。 老方法: npm install -g create-react-app create-react- 阅读全文
posted @ 2019-04-01 15:28 不了无明 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 从数组和对象中提取值,对变量进行赋值,这被称为解构 允许指定默认值: 当一个数组成员严格等于undefined,默认值才会生效 阅读全文
posted @ 2019-04-01 15:26 不了无明 阅读(191) 评论(0) 推荐(0) 编辑