diff options
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.html | 2 |
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); |