We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b427c0 commit eb58c8fCopy full SHA for eb58c8f
1-js/02-first-steps/18-javascript-specials/article.md
@@ -104,13 +104,13 @@ typeof function(){} == "function" // 函数被特殊对待
104
我们使用浏览器作为工作环境,所以基本的 UI 功能将是:
105
106
[`prompt(question[, default])`](mdn:api/Window/prompt)
107
-: 提出一个问题,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。
+: 提出一个问题 `question`,并返回访问者输入的内容,如果他按下「取消」则返回 `null`。
108
109
[`confirm(question)`](mdn:api/Window/confirm)
110
-: 提出一个问题,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。
+: 提出一个问题 `question`,并建议用户在“确定”和“取消”之间进行选择。选择结果以 `true/false` 形式返回。
111
112
[`alert(message)`](mdn:api/Window/alert)
113
-: 输出一个 `消息`。
+: 输出一个消息 `message`。
114
115
这些函数都会产生 **模态框**,它们会暂停代码执行并阻止访问者与页面的其他部分进行交互,直到用户做出回答为止。
116
0 commit comments