TypeScript注释文档
typescript 注释文档12345https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.htmlhttps://jsdoc.app/https://google.github.io/styleguide/jsguide.html
基本类型@type12345678910# @type 描述类型 变量的注释 @ ...
Git-Commit-Log规范
Commit message目的
commit message 应该清晰明了,说明本次提交的目的。
Augular 规范
Header 是必需的,Body 和 Footer 可以省略。
12345<type>(<scope>): <subject> #header// 空一行<body>// 空一行<footer>
格式讲解Hea ...
使用github-copilot智能提示
github 如果绑定了学校邮箱 申请免费资格
https://link.zhihu.com/?target=https%3A//github.com/features/copilot/signup
vscode 更新到最新版
因为拓展程序默认下载的是最新的 会不匹配 提示报错你 更新最新版的拓展
或者手动下载别的版本拓展
api 调用失败
具体原因是因为 github 没有被墙 但是亚洲区域 ...
制作一个油猴脚本
什么是js脚本
简单的说就是在网页上执行一段js代码
在自动化测试等场景还是有一些使用价值的
我们可以通过收藏一个书签
将他的地址设置为以下代码
只需要点击以下就可以执行了
123javascript:(function(){ ...})()
制作一个油猴脚本
油猴理解为更强大功能的脚本
他可以引入 jqery vue 等。让我们可以方便的编写
这里只需要在前缀的 ...
实现react-hook-useState
项目结构
yarn dev12345.├── README.md├── index.html├── package.json├── useState.jsx
package.json12345678{ "devDependencies": { "vite": "^2.9.5" }, " ...
实现Vue的v-for
实现Vue的v-for目录结构123456789101112├── app.js├── compileTemplate.js├── components│ ├── TestA│ │ └── index.js│ └── TestB│ └── index.js├── handler.js├── index.html├── index.js├── reactive.js└── ...
实现Vue的computed和watch
实现Vue的computed和watch
npx server
目录结构123456├── computed.js├── index.html├── index.js├── reactive.js├── vue.js└── watcher.js
index.html1<script type="module" src="./index.js"> ...