摘要: 1、 你可以在其它文件或模块中通过import+(常量 | 函数 | 文件 | 模块)名的方式,将其导入,以便能够对其进行使用。 2、 在一个文件或模块中,export、import可以有多个,export default仅有一个 3、 通过export方式导出,在导入时要加{ },export d 阅读全文
posted @ 2022-04-28 11:57 千里不流行 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 无法使用npx创建新的react应用程序时,可以尝试: 1、 npm cache clean --force2、 npm cache verify3、 npx clear-npx-cache以清除npx缓存。4、 npx create-react-app your-app or npx create 阅读全文
posted @ 2022-04-28 10:26 千里不流行 阅读(17) 评论(0) 推荐(0) 编辑