|
@@ -24,4 +24,7 @@
|
|
|
- **Mini测试**: 需要先进入mini目录再运行 `pnpm test --testNamePattern "测试名称"`
|
|
- **Mini测试**: 需要先进入mini目录再运行 `pnpm test --testNamePattern "测试名称"`
|
|
|
- **表单调试**: 表单提交失败时,在表单form onsubmit=form.handleSubmit的第二个参数中加console.debug来看表单验证错误,例如:`form.handleSubmit(handleSubmit, (errors) => console.debug('表单验证错误:', errors))`
|
|
- **表单调试**: 表单提交失败时,在表单form onsubmit=form.handleSubmit的第二个参数中加console.debug来看表单验证错误,例如:`form.handleSubmit(handleSubmit, (errors) => console.debug('表单验证错误:', errors))`
|
|
|
- 类型检查 可以用 pnpm typecheck 加 grep来过滤要检查的 指定文件
|
|
- 类型检查 可以用 pnpm typecheck 加 grep来过滤要检查的 指定文件
|
|
|
-- **文档查找**: 查找文档时在当前项目目录的 `docs` 目录下用绝对路径来查找,例如:`/mnt/code/186-175-template-6/docs/**/*.md`
|
|
|
|
|
|
|
+- **文档查找**: 查找文档时在当前项目目录的 `docs` 目录下使用 `ls` 或 `find` 命令来查找,例如:
|
|
|
|
|
+ - `ls /mnt/code/186-175-template-6/docs/` 查看 docs 目录下的文件
|
|
|
|
|
+ - `find /mnt/code/186-175-template-6/docs -name "*.md"` 查找所有 markdown 文件
|
|
|
|
|
+ - `find /mnt/code/186-175-template-6/docs -type f -name "*.md" | head -20` 查看前 20 个 markdown 文件
|