Skip to content

Commit

Permalink
Update files/zh-cn/learn/getting_started_with_the_web/javascript_basi…
Browse files Browse the repository at this point in the history
…cs/index.md

Co-authored-by: A1lo <[email protected]>
  • Loading branch information
familyboat and yin1999 authored Oct 10, 2024
1 parent a3a02b8 commit 003616c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ JavaScript 是最流行的现代 Web 技术之一。随着 JavaScript 技能的
<script src="scripts/main.js"></script>
```

3. 这句话的功能与 CSS 的 {{htmlelement("link")}} 元素类似。在页面中引入 JavaScript,这样 JavaScript 就能对 HTML 起作用(和 CSS,以及页面上的任何其他内容一起)。
3. CSS 的 {{htmlelement("link")}} 元素的功能类似,它将 JavaScript 引入以作用于 HTML (以及 CSS 和页面上的任何其他内容)。
4. 将下列代码添加到 `scripts/main.js` 文件:

```js
Expand Down

0 comments on commit 003616c

Please sign in to comment.