-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20ccd4e
commit 64c922d
Showing
25 changed files
with
709 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
----------------- | ||
配置全局加速地址 | ||
----------------- | ||
# 全局配置 | ||
git config --global url."https://gitclone.com/".insteadOf https:// | ||
|
||
#取消 | ||
git config --global --unset url."https://gitclone.com/".insteadOf | ||
|
||
# 查看配置 | ||
git config --list | ||
|
||
----------------- | ||
也可以尝试切换协议 | ||
----------------- | ||
|
||
git config --global url."https://".insteadOf git:// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ BOM | |
# 文档 | ||
https://developer.mozilla.org/zh-CN/docs/Web/API | ||
|
||
# 参考 | ||
https://wangdoc.com/javascript/bom/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
----------------------- | ||
Dom 编程 | ||
----------------------- | ||
# “文档对象模型”(Document Object Model)编程 | ||
# 参考 | ||
https://wangdoc.com/javascript/dom/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
--------------- | ||
Web API | ||
--------------- | ||
# 包含了 Dom 和 Bom 的接口 | ||
# 包含了 Dom 和 Bom 的接口文档 | ||
# 在线文档 | ||
https://developer.mozilla.org/zh-CN/docs/Web/API | ||
|
||
|
||
# 学习文档 | ||
https://wangdoc.com/webapi/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,8 @@ tsconfig.json | |
} | ||
] | ||
} | ||
|
||
------------------- | ||
tsconfig.json 配置 | ||
------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
------------------ | ||
注释指令 | ||
------------------ | ||
# 所谓“注释指令”,指的是采用 JS 双斜杠注释的形式,向编译器发出的命令。 | ||
|
||
// @ts-nocheck | ||
* 告诉编译器不对当前脚本进行类型检查,可以用于 TypeScript 脚本,也可以用于 JavaScript 脚本。 | ||
|
||
// @ts-check | ||
* 如果一个 JavaScript 脚本顶部添加了 '// @ts-check',那么编译器将对该脚本进行类型检查,不论是否启用了checkJs编译选项。 | ||
|
||
// @ts-ignore | ||
* 告诉编译器不对下一行代码进行类型检查,可以用于 TypeScript 脚本,也可以用于 JavaScript 脚本。 | ||
|
||
// @ts-expect-error | ||
* 主要用在测试用例,当下一行有类型错误时,它会压制 TypeScript 的报错信息(即不显示报错信息),把错误留给代码自己处理。 | ||
|
||
|
||
|
||
------------------ | ||
JS 文档 | ||
------------------ | ||
# TypeScript 直接处理 JS 文件时,如果无法推断出类型,会使用 JS 脚本里面的 JSDoc 注释。 | ||
# 使用 JSDoc 时,有两个基本要求。 | ||
(1)JSDoc 注释必须以 '/**' 开始,其中星号(*)的数量必须为两个。若使用其他形式的多行注释,则 JSDoc 会忽略该条注释。 | ||
(2)JSDoc 注释必须与它描述的代码处于相邻的位置,并且注释在上,代码在下。 | ||
|
||
/** | ||
* @param {string} somebody | ||
*/ | ||
function sayHello(somebody) { | ||
console.log('Hello ' + somebody); | ||
} | ||
|
||
// @param是一个 JSDoc 声明,表示下面的函数sayHello()的参数somebody类型为string。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-------------------------- | ||
TypeScript 内置类型 | ||
-------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.