Skip to content

Commit 97c5a6c

Browse files
authored
Merge branch 'master' into patch-1
2 parents 0897b95 + 310bb52 commit 97c5a6c

102 files changed

Lines changed: 2833 additions & 941 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Ready to build and deploy 🤓
13-
uses: fifsky/dingtalk-action@master
14-
with:
15-
url: ${{ secrets.DINGTALK_WEBHOOK }}
16-
type: text
17-
content: Github:JavaScript-Guidebook 构建开始
1812
- name: Checkout 🛎️
1913
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
2014
with:
2115
persist-credentials: false
16+
- name: Set Node Version
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '14.21.2'
2220
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
2321
run: |
2422
yarn install
@@ -30,9 +28,3 @@ jobs:
3028
BRANCH: gh-pages # The branch the action should deploy to.
3129
FOLDER: dist # The folder the action should deploy.
3230
CLEAN: true
33-
- name: Complete ✅
34-
uses: fifsky/dingtalk-action@master
35-
with:
36-
url: ${{ secrets.DINGTALK_WEBHOOK }}
37-
type: text
38-
content: Github:JavaScript-Guidebook 构建完成

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ yarn.lock
77
.umi/*
88
.temp/*
99
todo/
10-
dist/
10+
dist/
11+
.umi-production/*
12+
.vscode/
93.3 KB
Loading

docs/basic-concept/expressions/operators/detructing-assignment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ let { foo, bar } = example();
567567

568568
```js
569569
// 参数是一组有次序的值
570-
function f({x, y, z}) { ... }
570+
function f([x, y, z]) { ... }
571571
f([1, 2, 3]);
572572

573573
// 参数是一组无次序的值
@@ -625,7 +625,7 @@ map.set('first', 'hello');
625625
map.set('second', 'world!');
626626

627627
for (let [key, value] of map) {
628-
console.log(ket + ' is ' + value);
628+
console.log(key + ' is ' + value);
629629
}
630630
// first is hello
631631
// second is world

docs/browser-object-model/binary-data-and-files/url.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,3 @@ URL 接口实现的在 URLUtils 中定义的方法。
5656
| :-------------------- | :----------------------------------------------------------- |
5757
| URL.createObjectURL() | 返回一个 DOMString,包含一个唯一的 Blob URL(该 URL 协议)。 |
5858
| URL.revokeObjectURL() | 销毁之前使用 `URL.createObjectURL()` 创建的 URL 实例。 |
59-
60-
```js
61-
const blobUrl = 'blob://'
62-
63-
const URL
64-
65-
```

docs/browser-object-model/observer/mutation-observer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ order: 2
1313

1414
MutationObservr API 用于监视 DOM 的任何变动,比如节点的增减、属性的变动、文本内容的变动,这个 API 都可以得到通知。
1515

16-
DOM 发生变动都会触发 Mutation Observer 事件。但是,它跟事件还是有不同点:事件是同步触发的,DOM 变化立即触发相应的事件;Mutation Observer 是一部触发,DOM 变化不会马上触发,而是等当前所有 DOM 操作都结束后才触发。
16+
DOM 发生变动都会触发 Mutation Observer 事件。但是,它跟事件还是有不同点:事件是同步触发的,DOM 变化立即触发相应的事件;Mutation Observer 是异步触发,DOM 变化不会马上触发,而是等当前所有 DOM 操作都结束后才触发。
1717

1818
总的来说,特点如下:
1919

20-
- 它等待所有脚本任务完成后,才会运行(即一步触发方式
20+
- 它等待所有脚本任务完成后,才会运行(即异步触发方式
2121
- 它把 DOM 变动记录封装成一个数组进行处理,而不是一条条个别处理 DOM 变动
2222
- 它既可以观察 DOM 的所有类型变动,也可以指定只观察某类变动
2323

docs/computer-networks/http/https.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default () => <img alt="否认" src={img} width={720} />;
6767
- **混合加密**:公钥加密密钥,密钥加密数据,私钥解密密钥,密钥解密数据(非对称传送密钥,密钥传送数据)。解决非对称加密效率问题
6868
- **中间人攻击**:秘密替换公钥窃取数据,源于服务端无法确认客户端公钥是否合法
6969
- **消息鉴别码**`MAC` 密钥和密文组成的字符串的哈希值。能够解决 `伪造` 问题,但无法解决 `否认` 问题
70-
- **数字签名**:服务端创建数字签名,而客户端只验证签名是否争取。解决 `否认` 问题
70+
- **数字签名**:服务端创建数字签名,而客户端只验证签名是否正确。解决 `否认` 问题
7171
- **数字证书**:由权威机构背书创建证书,保证公钥不被篡改。解决 `中间人攻击` 问题
7272

7373
### 对称加密

docs/core-modules/executable-code-and-execution-contexts/compilation/blocks-as-scopes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function foo() {
8686
console.log(number);
8787
}
8888

89-
function bar( {
89+
function bar() {
9090
if(true) {
9191
let number = 5;
9292
console.log(number);

docs/core-modules/executable-code-and-execution-contexts/concurrency-model/event-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ setTimeout(() => {
5656
console.log(2);
5757
}, 0);
5858

59-
let promise = new Promise((res) => {
59+
let promise = new Promise((resolve) => {
6060
console.log(3);
6161
resolve();
6262
})

docs/design-patterns/architectural/dependency-injection.md

Whitespace-only changes.

0 commit comments

Comments
 (0)