aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/learn/getting_started_with_the_web/javascript_basics
diff options
context:
space:
mode:
authoralinggo <60703725+alinggo@users.noreply.github.com>2021-08-22 18:18:44 +0800
committerGitHub <noreply@github.com>2021-08-22 18:18:44 +0800
commit0a46226c63eff14c584691b33d73a3a1966183b9 (patch)
tree35717279dfe1d0b719b42780c910aef323077648 /files/zh-cn/learn/getting_started_with_the_web/javascript_basics
parente5b8ae8c5d03845621d372bd1932e5e10956cede (diff)
downloadtranslated-content-0a46226c63eff14c584691b33d73a3a1966183b9.tar.gz
translated-content-0a46226c63eff14c584691b33d73a3a1966183b9.tar.bz2
translated-content-0a46226c63eff14c584691b33d73a3a1966183b9.zip
Improve translation in Learn/Getting_started_with_the_web/JavaScript_basics, zh-CN (#2156)
* Removes potential ambiguity on javascript_basics. * Update index.html Removes potential ambiguity. * Replace broken link in introduction_to_html * Optimized expression in javascript_basics
Diffstat (limited to 'files/zh-cn/learn/getting_started_with_the_web/javascript_basics')
-rw-r--r--files/zh-cn/learn/getting_started_with_the_web/javascript_basics/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/learn/getting_started_with_the_web/javascript_basics/index.html b/files/zh-cn/learn/getting_started_with_the_web/javascript_basics/index.html
index 378913f393..eacd31f1b0 100644
--- a/files/zh-cn/learn/getting_started_with_the_web/javascript_basics/index.html
+++ b/files/zh-cn/learn/getting_started_with_the_web/javascript_basics/index.html
@@ -367,7 +367,7 @@ myImage.onclick = function() {
<pre class="brush: js notranslate">let myButton = document.querySelector('button');
let myHeading = document.querySelector('h1');</pre>
</li>
- <li>然后添加以下函数来设置个性化欢迎信息。(函数暂时不起作用,稍后修复)
+ <li>然后添加以下函数来设置个性化欢迎信息。(函数需要在调用后生效,下文中提供了两种对该函数的调用方式)
<pre class="brush: html notranslate">function setUserName() {
let myName = prompt('请输入你的名字。');
localStorage.setItem('name', myName);