01 2021 档案

摘要:1、Code -> 首选项 -> 用户片段 2、填入代码片段文件的名称,然后回车 3、在打开发文件中,写入代码片段的配置,如: { // Place your 全局 snippets here. Each snippet is defined under a snippet name and has 阅读全文
posted @ 2021-01-06 10:46 破男孩 阅读(227) 评论(0) 推荐(0)
摘要:今天在搭建react项目的时候,遇到ts提示错误,如: 代码: import concatRedux from '@utils/concatRedux' interface IProps extends IConnectProps {} interface IState { } @concatRed 阅读全文
posted @ 2021-01-05 22:59 破男孩 阅读(4963) 评论(0) 推荐(0)
摘要:使用crate-react-app创建的项目配置alias,这样之后在项目中直接可以使用别名来访问某个文件目录,从而快速引用某个文件,如使用这个命令创建的项目中,我们这 src/ 目录下创建一个 components/ 文件夹,如果想在项目中快速引用 components/Tab/index.tsx 阅读全文
posted @ 2021-01-03 11:28 破男孩 阅读(1052) 评论(0) 推荐(0)