From f4445671875e612878da4782090bf41dc3456a0c Mon Sep 17 00:00:00 2001 From: heheer <1239331448@qq.com> Date: Wed, 7 Dec 2022 14:58:42 +0800 Subject: [PATCH 1/5] fix: typo --- 1-js/02-first-steps/18-javascript-specials/article.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/1-js/02-first-steps/18-javascript-specials/article.md b/1-js/02-first-steps/18-javascript-specials/article.md index e6a04ef8af..4460e87e34 100644 --- a/1-js/02-first-steps/18-javascript-specials/article.md +++ b/1-js/02-first-steps/18-javascript-specials/article.md @@ -103,14 +103,14 @@ typeof function(){} == "function" // 函数被特殊对待 我们使用浏览器作为工作环境,所以基本的 UI 功能将是: -[`prompt(question[, default])`](mdn:api/Window/prompt) -: 提出一个问题,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。 +[`prompt(question, [default])`](mdn:api/Window/prompt) +: 提出一个 `question`,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。 [`confirm(question)`](mdn:api/Window/confirm) -: 提出一个问题,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。 +: 提出一个 `question`,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。 [`alert(message)`](mdn:api/Window/alert) -: 输出一个 `消息`。 +: 输出一个 `message`。 这些函数都会产生 **模态框**,它们会暂停代码执行并阻止访问者与页面的其他部分进行交互,直到用户做出回答为止。 From 7ef6a61ab5c1950024e2fe823a16a230d774e25c Mon Sep 17 00:00:00 2001 From: heheer <71265218+newfish-cmyk@users.noreply.github.com> Date: Thu, 8 Dec 2022 08:04:22 +0800 Subject: [PATCH 2/5] Update 1-js/02-first-steps/18-javascript-specials/article.md Co-authored-by: LeviDing --- 1-js/02-first-steps/18-javascript-specials/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/18-javascript-specials/article.md b/1-js/02-first-steps/18-javascript-specials/article.md index 4460e87e34..c1f7102b79 100644 --- a/1-js/02-first-steps/18-javascript-specials/article.md +++ b/1-js/02-first-steps/18-javascript-specials/article.md @@ -104,7 +104,7 @@ typeof function(){} == "function" // 函数被特殊对待 我们使用浏览器作为工作环境,所以基本的 UI 功能将是: [`prompt(question, [default])`](mdn:api/Window/prompt) -: 提出一个 `question`,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。 +: 提出一个问题 `question`,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。 [`confirm(question)`](mdn:api/Window/confirm) : 提出一个 `question`,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。 From da01d7e1523e72ea04b4752f8dc90f95c63fdccb Mon Sep 17 00:00:00 2001 From: heheer <71265218+newfish-cmyk@users.noreply.github.com> Date: Thu, 8 Dec 2022 08:04:36 +0800 Subject: [PATCH 3/5] Update 1-js/02-first-steps/18-javascript-specials/article.md Co-authored-by: LeviDing --- 1-js/02-first-steps/18-javascript-specials/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/18-javascript-specials/article.md b/1-js/02-first-steps/18-javascript-specials/article.md index c1f7102b79..057cb42945 100644 --- a/1-js/02-first-steps/18-javascript-specials/article.md +++ b/1-js/02-first-steps/18-javascript-specials/article.md @@ -107,7 +107,7 @@ typeof function(){} == "function" // 函数被特殊对待 : 提出一个问题 `question`,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。 [`confirm(question)`](mdn:api/Window/confirm) -: 提出一个 `question`,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。 +: 提出一个问题 `question`,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。 [`alert(message)`](mdn:api/Window/alert) : 输出一个 `message`。 From dc9e6ba0cad180af44987ae2f759148073c54672 Mon Sep 17 00:00:00 2001 From: heheer <71265218+newfish-cmyk@users.noreply.github.com> Date: Thu, 8 Dec 2022 08:04:43 +0800 Subject: [PATCH 4/5] Update 1-js/02-first-steps/18-javascript-specials/article.md Co-authored-by: LeviDing --- 1-js/02-first-steps/18-javascript-specials/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/18-javascript-specials/article.md b/1-js/02-first-steps/18-javascript-specials/article.md index 057cb42945..f34ffe59d6 100644 --- a/1-js/02-first-steps/18-javascript-specials/article.md +++ b/1-js/02-first-steps/18-javascript-specials/article.md @@ -110,7 +110,7 @@ typeof function(){} == "function" // 函数被特殊对待 : 提出一个问题 `question`,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。 [`alert(message)`](mdn:api/Window/alert) -: 输出一个 `message`。 +: 输出一个消息 `message`。 这些函数都会产生 **模态框**,它们会暂停代码执行并阻止访问者与页面的其他部分进行交互,直到用户做出回答为止。 From 45e73d4769b6312a4d1c7b2697d0aa92e9a38026 Mon Sep 17 00:00:00 2001 From: heheer <1239331448@qq.com> Date: Thu, 8 Dec 2022 08:33:34 +0800 Subject: [PATCH 5/5] Update article.md --- 1-js/02-first-steps/18-javascript-specials/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/18-javascript-specials/article.md b/1-js/02-first-steps/18-javascript-specials/article.md index f34ffe59d6..75bf2e0961 100644 --- a/1-js/02-first-steps/18-javascript-specials/article.md +++ b/1-js/02-first-steps/18-javascript-specials/article.md @@ -103,7 +103,7 @@ typeof function(){} == "function" // 函数被特殊对待 我们使用浏览器作为工作环境,所以基本的 UI 功能将是: -[`prompt(question, [default])`](mdn:api/Window/prompt) +[`prompt(question[, default])`](mdn:api/Window/prompt) : 提出一个问题 `question`,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。 [`confirm(question)`](mdn:api/Window/confirm)